$ kustomize build --enable-alpha-plugins
Error: map[string]interface {}(nil): yaml: unmarshal errors:
line 11: mapping key "apiVersion" already defined at line 1
line 12: mapping key "data" already defined at line 2
line 14: mapping key "kind" already defined at line 5
line 15: mapping key "metadata" already defined at line 6
line 17: mapping key "type" already defined at line 10
The reason is that a document separator (---) is missing:
If
files
are used together withsecretFrom
, the generated yaml is invalidThe reason is that a document separator (
---
) is missing:I have worked around this by creating two
generator
files, one with onlyfiles
and one with onlysecretFrom
.