Fail to decode yaml that has affinity with versions v3.9.x #3523
Labels
area/kyaml
issues for kyaml
area/plugin
issues for plugins
kind/bug
Categorizes issue or PR as related to a bug.
Describe the bug
Since kustomize 3.9.x when kustomize changed the way it manipulates YAML using the kyaml module I started getting this error
2021/02/01 16:46:53 failed to decode ynode: yaml: unmarshal errors: line 97: mapping key "affinity" already defined at line 30
When using the built in HelmChartInflationGenerator if the Helm values file has two affinities set for example
It will throw an error
If they are empty and set like this
It will work
Expected output
No error
Actual output
Kustomize version
v3.9.1 and v3.9.2
Platform
All
Additional context
I rolled back to v3.8.9 and that version works
The text was updated successfully, but these errors were encountered: