Juju requires creating webhook prefixed with model name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Yang Kelvin Liu |
Bug Description
I have a charm that deploys a workload that acts as a mutating and validating webhook. If the workload pod doesn't see the mutatingwebhook
As a concrete example, the katib-controller workload pod will boot up, and check to see if mutatingwebhook
Changed in juju: | |
assignee: | nobody → Yang Kelvin Liu (kelvin.liu) |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
The issue is that webhooks are global resources. Unless we prefix with the model name, it's possible to deploy 2 bundles to different models and they will overwrite each other's resources.
The correct juju way to do this is to use relation data to coordinate between workloads instead of looking for hard coded data.