Fix for: zrok & ziti-router helm charts. Remove duplicated already defined labels#303
Merged
qrkourier merged 2 commits intoopenziti:mainfrom Feb 12, 2025
Merged
Fix for: zrok & ziti-router helm charts. Remove duplicated already defined labels#303qrkourier merged 2 commits intoopenziti:mainfrom
qrkourier merged 2 commits intoopenziti:mainfrom
Conversation
- zrok
- ziti-router
Remove from spec.template.metadata.labels duplicated already defined labels:
- app.kubernetes.io/managed-by
- app.kubernetes.io/instance
- helm.sh/chart
So it would not prevent deploying these helm charts, otherwise you can see error "unmarshal errors [...] mapping key [...] already defined"
```shell
kustomize build ./kustomizations --enable-helm > ./openziti.kustimized.yaml
Error: map[string]interface {}(nil): yaml: unmarshal errors:
line 27: mapping key "app.kubernetes.io/managed-by" already defined at line 22
line 29: mapping key "app.kubernetes.io/instance" already defined at line 23
line 25: mapping key "helm.sh/chart" already defined at line 24
```
qrkourier
approved these changes
Feb 12, 2025
Member
qrkourier
left a comment
There was a problem hiding this comment.
Looks good. Thank you for sharing your rationale and for the patch!
Contributor
Author
|
@qrkourier which versions of zrok & ziti-router helm charts will this be merged to? Current versions are:
|
Member
|
These changes are now in latest: https://github.com/openziti/helm-charts/releases |
This file contains hidden or 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
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.
Remove from spec.template.metadata.labels duplicated already defined labels:
So it would not prevent deploying these helm charts, otherwise you can see error "unmarshal errors [...] mapping key [...] already defined"
If not fixed, you'll get:
If I manually remove the duplicated lebels from spec.template.metadata.labels when I inflate the helm chart the resulting manifest will have spec.template.metadata.labels set inherited from the helm chart, confirming that setting them in the template is unneccessary.