Skip to content

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

Merged
merged 2 commits into from
May 3, 2022
Merged

Add SRIOV and RAM to initialisms #330

merged 2 commits into from
May 3, 2022

Conversation

brycahta
Copy link
Contributor

@brycahta brycahta commented May 3, 2022

Issue #, if available: aws-controllers-k8s/ec2-controller#52

Description of changes:

  • adds SRIOV and RAM to initialisms with updated tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-bot ack-bot requested review from a-hilaly and jaypipes May 3, 2022 18:48
Copy link
Collaborator

@jaypipes jaypipes left a 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"},
Copy link
Collaborator

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)},
Copy link
Collaborator

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.

@jaypipes
Copy link
Collaborator

jaypipes commented May 3, 2022

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label May 3, 2022
@ack-bot
Copy link
Collaborator

ack-bot commented May 3, 2022

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -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)},
Copy link
Contributor Author

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

@ack-bot ack-bot merged commit 95f81d3 into aws-controllers-k8s:main May 3, 2022
@brycahta brycahta deleted the initialisms branch May 3, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants