Leaked Kubernetes resources when a service-name / service-hostname changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-k8s-ingress |
New
|
Undecided
|
Unassigned |
Bug Description
The nginx-ingress-
However, if the charm is then configured with a different service-name and service-hostname, the previous resources are not removed. This happens everytime the configuration options change since the Resource names are based on the aforementioned service-name / service-hostname.
This can also happen for the service-names and service-hostnames received from relation data (+ additional-
Because the Kubernetes resource names are based on service-name / service-hostname, cleaning them up is not immediately straight-forward since the charm would have to store the previous values and compare them to the current ones.
This is now being tracked as https:/ /github. com/canonical/ nginx-ingress- integrator- operator/ issues/ 4