-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The behavior as described there depends on having It would be better if the docs called this out. I opened: to address this. Hope this clarifies things! |
Beta Was this translation helpful? Give feedback.
-
I'm seeing something similar where - if I delete a Kustomization from my repo the kustomization object is deleted but the resources created by it remain - I have I see something like this in my kustomize controller log and I was wondering if I'm perhaps seeing the error because I deleted the Kustomization object as well as the manifests that built it at the same time. {"level":"info","ts":"2022-04-07T12:09:12.299Z","logger":"controller.kustomization","msg":"Reconciliation finished in 298.74335ms, next run in 2m0s","reconciler group":"kustomize.toolkit.fluxcd.io","reconciler kind":"Kustomization","name":"rxxxx","namespace":"flux-system","revision":"main/8bae21879b14e32055eb0f2532069dacc9415229"}
{"level":"error","ts":"2022-04-07T12:09:50.640Z","logger":"controller.kustomization","msg":"Reconciliation failed after 101.932265ms, next try in 2m0s","reconciler group":"kustomize.toolkit.fluxcd.io","reconciler kind":"Kustomization","name":"xxxx","namespace":"flux-system","revision":"main/85324aba8f447d52ea009223d3c6ee9fec48ab22","error":"kustomization path not found: stat /tmp/xxxx/3048725746/apps/xxxx: no such file or directory"}
{"level":"info","ts":"2022-04-07T12:09:52.972Z","logger":"controller.kustomization","msg":"garbage collection completed: Kustomization/flux-system/xxxx deleted","reconciler group":"kustomize.toolkit.fluxcd.io","reconciler kind":"Kustomization","name":"fluxcd2-sync","namespace":"flux-system"} It would be good to understand better how pruning is supposed to work, does the controller expect the manifest files to still exist in order to compute what should be deleted, or is some other method used like annotations on resources? |
Beta Was this translation helpful? Give feedback.
The behavior as described there depends on having
spec.prune: true
set in the Flux Kustomization.It would be better if the docs called this out.
I opened:
to address this. Hope this clarifies things!