Open ameyp opened 1 year ago
@ameyp thanks for reporting this.
We should prefix the file names with an index, just like we do with charts. Generating a kustomize.yaml
file is an option, but I prefer to avoid since it limits the way an application can be deployed.
Description of the bug:
If I specify the
YamlOutputType
asFOLDER_PER_CHART_FILE_PER_RESOURCE
for synth, I expect the resources in the folder created to be named in such a way as to honor their dependency order. However, the resources are created without an index prefix, and so will be applied in alphabetical order by kubectl/fluxcd/whatever.I see two options:
kustomize.yaml
with aresources
block that lists each file in orderReproduction Steps:
This will generate two files:
Which will be applied in that order, despite
resource1
needingresource2
to be applied first.This is :bug: Bug Report