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

issue4870 - refactor helm to use managed-by annotation #5673

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

dlaloue-vmware
Copy link
Collaborator

Description of the change

The previous fix for issue 4870 did not introduce the managed-by annotation as per the spec, but relied on naming pattern for backward compatibility.
This presents the issue that new secrets will still depend on the old naming pattern.

This change ensures that new or updated secrets have the managed-by annotation, and that the code looks for this annotation.

The code stills falls back to the naming pattern for backward compatibility, but now with a deprecation path. We can remove the naming pattern support in a future version.

Applicable issues

@netlify
Copy link

netlify bot commented Nov 20, 2022

Deploy Preview for kubeapps-dev canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit e481c5d
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/637ab7856bf7ae00085deb20

@@ -31,12 +31,16 @@ const (
SecretCaKey = "ca.crt"
SecretAuthHeaderKey = "authorizationHeader"
DockerConfigJsonKey = ".dockerconfigjson"

Copy link
Contributor

Choose a reason for hiding this comment

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

may I suggest "app.kubernetes.io/managed-by" for the key (ref https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/#labels). Seemed fitting to me so I was planning to use that in flux plugin

Copy link
Collaborator Author

@dlaloue-vmware dlaloue-vmware Nov 21, 2022

Choose a reason for hiding this comment

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

i do not remember what we discussion we previously had, but this is following what is in the carvel plugin.
if we decide to change, we would either have different implementations, or need to change what we have in carvel.

Copy link
Contributor

@gfichtenholt gfichtenholt left a comment

Choose a reason for hiding this comment

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

OK then, no objections

@dlaloue-vmware dlaloue-vmware merged commit 751a5d6 into vmware-tanzu:main Nov 23, 2022
@dlaloue-vmware dlaloue-vmware deleted the issue4870 branch November 23, 2022 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Repository] refactor helm to use managed-by annotation instead of system flag
3 participants