from cleanup-after-sync-: cannot use generate name with apply
Opened this issue · 5 comments
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)
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
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 :-)