gitops run: If dev-ks never becomes healthy, then eventually it goes missing
If I:
- Try to run gitops run against something broken
- Don't fix the reason it's breaking
- Wait 5 minutes or so
Then the dev-ks will be completely deleted, and the only way to recreate it is to turn gitops run off and on again.
I expect that I will be able to work to fix the reason it's failing for as long as I want, and whenever I fix it, everything will start to work.
In good news, I have left a "healthy" gitops run running for days and it still works when I come back :)
I think this bug is already fixed as a side effect of YAML validation.
@chanwit cool!
Fixed by #2970
Tried to reproduce it in both session and non-session mode:
-
gitops run [--no-session] . - The Kustomization isn't ready:
flux-system run-dev-ks 3m24s False kustomize build failed: accumulating resources: accumulation err='accumulating resources from 'deployment.yaml': open /tmp/kustomization-3295192071/kaputt/deployment.yaml: no such file or directory': must build at directory: not a valid directory: eval symlink failure on '/tmp/kustomization-3295192071/kaputt/deployment.yaml' : lstat /tmp/kustomization-3295192071/kaputt/deployment.yaml: no such file or directory - Wait 10 minutes
- Kustomization is still there:
$ k -n flux-system get ks run-dev-ks NAME AGE READY STATUS run-dev-ks 10m False kustomize build failed: accumulating resources: accumulation [...]