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
I am aware of #1522, however I properly indented the spec and it is still removing the comment.
Steps to reproduce
Install flux with image controllers
Create a base deployment.yaml that includes an image policy reference
Reference that base in a different location, and run kustomize
Expected behavior
The image policy comment should be appended to the image definition
Screenshots and recordings
No response
OS / Distro
N/A
Flux version
v0.28.4
Flux check
N/A
Git provider
GitHub
Container Registry provider
ECR
Additional context
The one thought I had is the line length - since it is using an image from ECR, the line is fairly long with the comment included. So far I have not found any damning evidence that this is the cause, however
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
kustomize the CLI, removes all comments on build. You need to set the image policy comment in the Flux Kustomization object that reconciles the app on the cluster, like so:
Thanks @stefanprodan . My only follow up - currently those flux Kustomizations are not in YAML. I have exported the YAML but am unsure if I can put it in the gotk-sync.yaml file as it explicitly says "DO NOT EDIT". Should I put them in another file in that directory?
The flux-system Kustomization should only apply other Flux Kustomizations not apps directly. Also you don't need to run kustomize build on your repo, Flux does that in-cluster for you. See here how to organise repos: https://github.com/fluxcd/flux2-kustomize-helm-example
Describe the bug
base/podinfo/deployment.yaml:
demo/podinfo/kustomization.yaml:
I am aware of #1522, however I properly indented the spec and it is still removing the comment.
Steps to reproduce
Expected behavior
The image policy comment should be appended to the image definition
Screenshots and recordings
No response
OS / Distro
N/A
Flux version
v0.28.4
Flux check
N/A
Git provider
GitHub
Container Registry provider
ECR
Additional context
The one thought I had is the line length - since it is using an image from ECR, the line is fairly long with the comment included. So far I have not found any damning evidence that this is the cause, however
Code of Conduct
The text was updated successfully, but these errors were encountered: