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

cherry-pick PR-1482 into release-1.8 #1496

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

M00nF1sh
Copy link
Contributor

@M00nF1sh M00nF1sh commented 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: if CLUSTER_NAME envVar is specified.
    • additional tags specified if ADDITIONAL_ENI_TAGS envVar is specified.

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:
cherry-pick PR-1482 into release-1.8

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.

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 M00nF1sh merged commit 1390229 into aws:release-1.8 Jun 7, 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.

2 participants