Open dan-slinky-ckpd opened 3 years ago
@stefanprodan given the upstream bug on this is now resolved is any work on this planned? We're trying to enforce linters in our gitops repos and many code formatters like yamlfmt
and yamlfix
all prefer indenting lists with an additional two spaces. To be clear I'm happy with either convention, I just can't configure flux or the linters to a single convention - configurability is never a bad thing. Heres what happens in our repos after linting, and then a new image gets commited by flux.
before:
images:
- name: myrepo.azurecr.io/myproject
newName: myrepo.azurecr.io/myproject
newTag: prod-2.2.2 # {"$imagepolicy": "flux-system:myproject:tag"}
after:
images:
- name: myrepo.azurecr.io/myproject
newName: myrepo.azurecr.io/myproject
newTag: prod-2.2.2 # {"$imagepolicy": "flux-system:myproject:tag"}
This is still happening and is very annoying. Any updates?
Can we at least remove the 'blocked/upstream' tag?
Describe the bug
Blank lines are removed from my kustomization.yaml after an image update. In large kustomizations it useful to seperate sections for readability.
To Reproduce
Start with a kustomization.yaml like so:
After an image update, the blank lines are removed :(
Expected behavior
Maintain the blank lines.
Additional context
flux version 0.9.0