Skip to content
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

Update AMI entry to prevent replacement in Family, Dynamic, Camila and others #169

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

a-hilaly
Copy link
Member

Issue N/A

Description of changes:

  • Update AMI entry to prevent replacement in Family, Dynamic, Camila and others

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

@@ -67,8 +67,10 @@ var (
{"MD5Of", "MD5Of", "md5Of", regexp.MustCompile("M[dD]5Of", regexp.None)},
// Prevent "MultipartUpload" from becoming "MultIPartUpload"
{"Ip", "IP", "ip", regexp.MustCompile("Ip(?!art)", regexp.None)},
// Prevent "Family" from becoming "FAMIly"
{"Ami", "AMI", "ami", regexp.MustCompile("(?!f)ami(?!ly)|(Ami)", regexp.None)},
// Model fields containing AMI will always capitalize the 'A' hence we don't
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

A note for other reviewers: this was verified by grepping aws-sdk-go for all occurrences of ami. When we found amiType (lowercase) in the eks api model, Amine ran code-gen against eks to validate the field would come in as AmiType

@vijtrip2
Copy link
Contributor

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2021
@ack-bot
Copy link
Collaborator

ack-bot commented Aug 25, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly, vijtrip2

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

@ack-bot ack-bot merged commit ea1222d into aws-controllers-k8s:main Aug 25, 2021
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.

4 participants