You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a result, installation from fluxcd fails with message
Helm upgrade failed: error while running post render on files: map[string[]interface {}(nil): yaml: unmarshal errors:
line 107: mapping key "httpGet" already defined at line 100
line 118: mapping key "httpGet" already defined at line 112
While duplicate keys are mostly ignored by some tools but not others, this problem is unfortunately not detected by helm lint (once #452 gets included)
This package exists to expose kyaml filters directly as cli commands for the purposes of development of the kyaml package and as a reference implementation for using the libraries.
I for now failed to install kyaml (likely by lack of skills related go build environment)
go install -v sigs.k8s.io/kustomize/cmd/kyaml@latest
go: sigs.k8s.io/kustomize/cmd/kyaml@latest: module sigs.k8s.io/kustomize@latest found (v2.0.3+incompatible), but does not contain package sigs.k8s.io/kustomize/cmd/kyaml
Describe the bug
#449 introduced a regression with duplicate yaml key between the template and default values
helm-charts/charts/testkube-api/templates/deployment.yaml
Lines 178 to 183 in 68dd5e2
helm-charts/charts/testkube-api/values.yaml
Lines 314 to 318 in 68dd5e2
As a result, installation from fluxcd fails with message
See related fluxcd/helm-controller#283 (comment)
While duplicate keys are mostly ignored by some tools but not others, this problem is unfortunately not detected by
helm lint
(once #452 gets included)More background explaining why fluxcd fails with duplicated yaml keys can be found at kubernetes-sigs/kustomize#3480
I searched a while how to automatically detect such regressions in the future in the
kubeshop/helm-charts
github workflows:sigs.k8s.io/kustomize/kyaml
cli is likely to detect such errorshttps://github.com/kubernetes-sigs/kustomize/blob/2fa944b1cdc1f9ad4f72b3df8e67553e0b97d37d/cmd/kyaml/README.md
I for now failed to install kyaml (likely by lack of skills related go build environment)
To Reproduce
Steps to reproduce the behavior:
Find duplicate keys
** workaround **
Revert to 1.10.256
Expected behavior
A clear and concise description of what you expected to happen.
Version / Cluster
Screenshots
If applicable, add CLI commands/output to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: