Hook Jobs under a deny-all on a first install too #34

Merged
jcoffey-dev merged 1 commits from fix/hook-network-policies into main 2026-11-20 05:37:55 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev a47a4db04e Hook Jobs under a deny-all on a first install too
ci / chart (pull_request) Successful in 39s
The seed Job is a pre-install hook, so on a first install it ran before
any of the release's NetworkPolicies existed: unconfined, and refused by
a cluster that requires a deny-all over every pod (the lab's Kyverno
policy). The deny-all and the jobs' policy are now rendered a second time
as pre-install/pre-upgrade/pre-rollback hooks at weight -20, deleted once
the hooks succeed; by then the release's own copies are in place.

Found by the lab's first from-scratch run (lab/e2e.sh); every earlier run
upgraded an existing release.
2026-11-19 22:07:53 -07:00