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

Preserve label/annotations on updated Deployments #71

Conversation

jgwest
Copy link
Member

@jgwest jgwest commented Jun 18, 2024

What does this PR do / why we need it:

  • At present, when we reconcile a Rollout on an existing Deployment, and that Deployment contains labels/annotations that were not originally present, we will update the Deployment to remove those labels.
  • However, labels/annotations can be added by other external tools in Kubernetes, and we should preserve them.
  • Likewise, we should not update a Deployment if no other fields changes besides the labels/annotations.

Have you updated the necessary documentation?

  • Documentation update is required by this PR, and has been updated.

Which issue(s) this PR fixes:
Fixes #72

How to test changes / Special notes to the reviewer:

Signed-off-by: Jonathan West <jonwest@redhat.com>
Signed-off-by: Jonathan West <jonwest@redhat.com>
Signed-off-by: Jonathan West <jonwest@redhat.com>
@jgwest jgwest force-pushed the preserve-labels-annots-on-deployments-may-2024 branch from 5ba57ca to 7c51603 Compare June 25, 2024 06:06
@jgwest jgwest requested a review from chetan-rns July 10, 2024 09:01
Copy link
Collaborator

@chetan-rns chetan-rns left a comment

Choose a reason for hiding this comment

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

Thanks @jgwest

/lgtm

@jgwest
Copy link
Member Author

jgwest commented Jul 16, 2024

Thanks @chetan-rns!

@jgwest jgwest merged commit c771c50 into argoproj-labs:main Jul 16, 2024
6 checks passed
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.

Label/annotations on updated Deployments should be preserved
2 participants