gitops-cert-level-2-examples
gitops-cert-level-2-examples copied to clipboard
from cleanup-after-sync-: cannot use generate name with apply
Encountered in Sync hook and waves exercise, last exercise
Hello! Could you share the file throwing the error and the exercise text? You maybe miss a part asking you to add more YAML to the file and commit it (and as it is incomplete, Argo complains)
https://github.com/codefresh-contrib/gitops-cert-level-2-examples/tree/6e01c3c10a02807edf8e534135cb382695469537
Yeah maybe, because if i remember it right, i tried to create the app with the auto create namespace unchecked and i just deleted the app again and recreate... i forgot how to replicate sorry
Pretty sure it is because you were missing the hook annotation, I remember having a similar issue
with this: https://github.com/codefresh-contrib/gitops-cert-level-2-examples/blob/main/sync-hooks-waves/03-postsync-cleanup/cleanup.yml it will give you an error, but if you uncomment it should work
I have it https://github.com/codefresh-contrib/gitops-cert-level-2-examples/blob/6e01c3c10a02807edf8e534135cb382695469537/sync-hooks-waves/03-postsync-cleanup/cleanup.yml
Hello @letthefireflieslive
Your solution seems to miss the syncwave annotation. I only see the phase annotation on your file.
Anyway, I just tried the last exercise again myself and I don't see any errors See attached screenshot
The expected solution is actually provided in the same repo :-)
https://github.com/codefresh-contrib/gitops-cert-level-2-examples/tree/main/solutions/sync-hooks-waves/06-waves-and-hooks