-
Notifications
You must be signed in to change notification settings - Fork 67
Add support for additional tags on vpc lattice resources #829
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
} | ||
|
||
if len(tagsToAdd) > 0 { | ||
_, err := t.TagResourcesWithContext(ctx, &taggingapi.TagResourcesInput{ |
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.
Do the recent exponential throttling improvements apply here as well?
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.
Incase of an error, it would retry with an exponential backoff.
} | ||
|
||
currentTags := k8s.GetNonAWSManagedTags(existingTags[resourceArn]) | ||
filteredNewTags := k8s.GetNonAWSManagedTags(newTags) |
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.
It would be useful to do some pre-validation if we can based on general AWS tagging guidelines
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.
Added validation for:
- Key length (128 characters)
- Key can't start with prefix
aws:
- Value length (256 characters)
- Maximum number of tags (50)
- Tag pattern:
^([\p{L}\p{Z}\p{N}_.:\/=+\-@]*)$
Taken from: https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_Tag.html
Changes: 34889a4
* Add support for additional tags on vpc lattice resources * add documentation for additional tags * add validation for tags --------- Co-authored-by: vbedi <vbedi@amazon.com>
What type of PR is this?
Feature
What does this PR do / Why do we need it:
This PR adds support for adding additional tags on VPC Lattice resources created via the controller.
If an issue # is not available please add repro steps and logs from aws-gateway-controller showing the issue:
#611
Testing done on this change:
Added e2e-tests and unit tests.
Will this PR introduce any new dependencies?:
No
Will this break upgrades or downgrades. Has updating a running cluster been tested?:
No breaking changes
Does this PR introduce any user-facing change?:
Yes, this PR adds support for additional tags.
Do all end-to-end tests successfully pass when running
make e2e-test
?:Yes, all existing and new tests pass.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.