-
Notifications
You must be signed in to change notification settings - Fork 748
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
refine ENI tagging logic #1482
Merged
Merged
refine ENI tagging logic #1482
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
achevuru
reviewed
Jun 4, 2021
achevuru
reviewed
Jun 4, 2021
achevuru
reviewed
Jun 4, 2021
M00nF1sh
force-pushed
the
secure_policy
branch
10 times, most recently
from
June 4, 2021 22:47
4e0f62f
to
b247e1c
Compare
achevuru
approved these changes
Jun 4, 2021
M00nF1sh
force-pushed
the
secure_policy
branch
4 times, most recently
from
June 5, 2021 01:15
ea85ff7
to
fc3a0cc
Compare
1. All ENIs created by IPAM-D will be tagged with all desired tags on creation. 2. All ENIs managed by IPAM-D will be tagged with all desired tags if not already tagged with these tags. Other tags on ENI will be kept as it is. 1. Trunk ENI is excluded, as it's lifecycle is managed by vpc-resource-controller. 2. Since we tag ENIs on ENI creation, this backfill logic will only trigger for below cases: * ENIs created by previous versions of ENI and the desired tag set changed. * ENIs attached to instances from external source without the node.k8s.amazonaws.com/no_manage tag. 3. The desired tag set is: * node.k8s.amazonaws.com/instance_id: <instance_id> * cluster.k8s.amazonaws.com/name: <cluster-name> if CLUSTER_NAME envVar is specified. * additional tags specified if ADDITIONAL_ENI_TAGS envVar is specified.
M00nF1sh
added a commit
to M00nF1sh/amazon-vpc-cni-k8s
that referenced
this pull request
Jun 7, 2021
1. All ENIs created by IPAM-D will be tagged with all desired tags on creation. 2. All ENIs managed by IPAM-D will be tagged with all desired tags if not already tagged with these tags. Other tags on ENI will be kept as it is. 1. Trunk ENI is excluded, as it's lifecycle is managed by vpc-resource-controller. 2. Since we tag ENIs on ENI creation, this backfill logic will only trigger for below cases: * ENIs created by previous versions of ENI and the desired tag set changed. * ENIs attached to instances from external source without the node.k8s.amazonaws.com/no_manage tag. 3. The desired tag set is: * node.k8s.amazonaws.com/instance_id: <instance_id> * cluster.k8s.amazonaws.com/name: <cluster-name> if CLUSTER_NAME envVar is specified. * additional tags specified if ADDITIONAL_ENI_TAGS envVar is specified.
M00nF1sh
added a commit
to M00nF1sh/amazon-vpc-cni-k8s
that referenced
this pull request
Jun 7, 2021
1. All ENIs created by IPAM-D will be tagged with all desired tags on creation. 2. All ENIs managed by IPAM-D will be tagged with all desired tags if not already tagged with these tags. Other tags on ENI will be kept as it is. 1. Trunk ENI is excluded, as it's lifecycle is managed by vpc-resource-controller. 2. Since we tag ENIs on ENI creation, this backfill logic will only trigger for below cases: * ENIs created by previous versions of ENI and the desired tag set changed. * ENIs attached to instances from external source without the node.k8s.amazonaws.com/no_manage tag. 3. The desired tag set is: * node.k8s.amazonaws.com/instance_id: <instance_id> * cluster.k8s.amazonaws.com/name: <cluster-name> if CLUSTER_NAME envVar is specified. * additional tags specified if ADDITIONAL_ENI_TAGS envVar is specified.
M00nF1sh
added a commit
that referenced
this pull request
Jun 7, 2021
1. All ENIs created by IPAM-D will be tagged with all desired tags on creation. 2. All ENIs managed by IPAM-D will be tagged with all desired tags if not already tagged with these tags. Other tags on ENI will be kept as it is. 1. Trunk ENI is excluded, as it's lifecycle is managed by vpc-resource-controller. 2. Since we tag ENIs on ENI creation, this backfill logic will only trigger for below cases: * ENIs created by previous versions of ENI and the desired tag set changed. * ENIs attached to instances from external source without the node.k8s.amazonaws.com/no_manage tag. 3. The desired tag set is: * node.k8s.amazonaws.com/instance_id: <instance_id> * cluster.k8s.amazonaws.com/name: <cluster-name> if CLUSTER_NAME envVar is specified. * additional tags specified if ADDITIONAL_ENI_TAGS envVar is specified.
This was referenced Jun 10, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind cleanup
/kind feature
Which issue does this PR fix:
N/A
What does this PR do / Why do we need it:
This PR did following change:
node.k8s.amazonaws.com/no_manage
tag.node.k8s.amazonaws.com/instance_id: <instance_id>
cluster.k8s.amazonaws.com/name: <cluster-name>
ifCLUSTER_NAME
envVar is specified.ADDITIONAL_ENI_TAGS
envVar is specified.This PR gives us below benefit, which allow customers to use a scoped down IAM policy
If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:
Testing done on this change:
Automation added to e2e:
Will this break upgrades or downgrades. Has updating a running cluster been tested?:
Does this change require updates to the CNI daemonset config files to work?:
Does this PR introduce any user-facing change?:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.