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

Ability to map ARN field #44

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

surajkota
Copy link
Member

Issue aws-controllers-k8s/community#737

Description of changes:
Currently, the code generator expects the ARN field name to be Arn or ResourceName+Arn (case insensitive) which does not match for some resources like ModelQualityJobDefinition in SageMaker where ARN field is named JobDeifinitionArn.

  • This PR adds a boolean is_arn under field_config for a resource to override the default behaviour.
  • Unit test for the functionality

Testing

make test

aws-controllers-k8s/sagemaker-controller#14

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

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

LGTM 👍

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.

Rock on, thank you @surajkota!

@jaypipes jaypipes merged commit 0eb1f2d into aws-controllers-k8s:main Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants