Skip to content

Conversation

rifelpet
Copy link
Member

Reported on slack.

If a cluster has ManagedASGTag set to an existing label, it is overwritten with an empty value. For the kubernetes.io/cluster/$cluster tag, this can cause problems during cluster deletion.

NTH doesn't actually care about the value of the tag:

https://github.com/aws/aws-node-termination-handler/blob/a0c0aa1bd14780b0d5ca7ce70cd92eed746ff64d/pkg/monitor/sqsevent/sqs-monitor.go#L427-L431

So if the tag is already set then we should preserve its existing value.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 17, 2024
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 17, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 17, 2024
k8s-ci-robot added a commit that referenced this pull request Dec 17, 2024
…41-origin-release-1.31

Automated cherry pick of #17141: Only set NTH ManagedASGTag label if it doesn't already exist
k8s-ci-robot added a commit that referenced this pull request Dec 17, 2024
…41-origin-release-1.30

Automated cherry pick of #17141: Only set NTH ManagedASGTag label if it doesn't already exist
@hakman
Copy link
Member

hakman commented Dec 17, 2024

/test all

@hakman
Copy link
Member

hakman commented Dec 17, 2024

/retest

@hakman
Copy link
Member

hakman commented Dec 17, 2024

/override pull-kops-e2e-k8s-aws-amazonvpc

@k8s-ci-robot
Copy link
Contributor

@hakman: Overrode contexts on behalf of hakman: pull-kops-e2e-k8s-aws-amazonvpc

In response to this:

/override pull-kops-e2e-k8s-aws-amazonvpc

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot merged commit 011ab0f into kubernetes:master Dec 17, 2024
24 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.31 milestone Dec 17, 2024
@rifelpet rifelpet modified the milestones: v1.31, v1.32 Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants