-
Notifications
You must be signed in to change notification settings - Fork 206
Add SRIOV and RAM to initialisms #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch @brycahta, thank you! :)
@@ -67,8 +68,12 @@ func TestNames(t *testing.T) { | |||
{"NativeAuditFieldsIncluded", "NativeAuditFieldsIncluded", "nativeAuditFieldsIncluded", "native_audit_fields_included"}, | |||
{"NumberOfAmiToKeep", "NumberOfAMIToKeep", "numberOfAMIToKeep", "number_of_ami_to_keep"}, | |||
{"Package", "Package", "package_", "package_"}, | |||
{"Param", "Param", "param", "param"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -119,10 +119,13 @@ var ( | |||
{"Nat", "NAT", "nat", regexp.MustCompile("Nat(?!i)", regexp.None)}, | |||
{"Oidc", "OIDC", "oidc", nil}, | |||
{"Ocsp", "OCSP", "ocsp", nil}, | |||
// Model fields starting with 'Ram' refer to RAM | |||
{"Ram", "RAM", "ram", regexp.MustCompile("Ram", regexp.None)}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will be OK... I'm not sure if there are fields like pctRam
or percentRam
or something like that which we would need to keep an eye out for though.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brycahta, jaypipes The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -119,10 +119,13 @@ var ( | |||
{"Nat", "NAT", "nat", regexp.MustCompile("Nat(?!i)", regexp.None)}, | |||
{"Oidc", "OIDC", "oidc", nil}, | |||
{"Ocsp", "OCSP", "ocsp", nil}, | |||
// Model fields starting with 'Ram' refer to RAM | |||
{"Ram", "RAM", "ram", regexp.MustCompile("Ram", regexp.None)}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rule for RAM
is not exhaustive, ex: rambunctious, ramification, Ramadan. However, I deep dived the models to validate this simpler rule should work for all controllers.
In aws-sdk-go/models/apis , executed grep -r '[a-zA-Z]*ram[a-zA-Z]*' -o . | sort | uniq
:
addThingsToThingGroupParams
algorithmHyperParameters
cacheKeyParameters
categoricalHyperParameterRanges
containerParams
continuousHyperParameterRanges
datagram
datagrams
diagram
dropframe
emitProgram
enableIoTLoggingParams
exactFramerate
frame
frameMetric
frameMetricData
frameMetrics
frameName
framerate
framerateControl
framerateDenominator
framerateNumerator
framerates
frames
framework
frameworkId
frameworkMetadataList
frameworkName
frameworkType
frameworks
gopNumBFrames
grammar
histogram
hyperparameter
hyperparameters
iframe
integerHyperParameterRanges
keyframe
linuxProcessParams
logParameters
maxFrameAverageLightLevel
mydbclusterparametergroup
mydbparametergroup
mydbparamgroup
mymysqlparametergroup
numberBFrames
numberBFramesBetweenReferenceFrames
param
parameter
parameterName
parameterValue
parameterized
parameters
paramount
params
paramstore
program
programDateTimeIntervalSeconds
programName
programNumber
programlisting
programmatic
programmatically
programmer
programming
programs
publishFindingToSnsParams
ram
ramdisk
replaceDefaultPolicyVersionParams
requestParameterKey
requestParameters
responseParameters
scram
signingProfileParameter
timeframe
updateCACertificateParams
updateDeviceCertificateParams
Issue #, if available: aws-controllers-k8s/ec2-controller#52
Description of changes:
SRIOV
andRAM
to initialisms with updated testsBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.