Juju injecting unwanted metadata in Resources deployed by K8s Charm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Thomas Miller | ||
2.8 |
Fix Released
|
Medium
|
Thomas Miller |
Bug Description
We encountered this issue during the development of a charm for Rancher (https:/
This charm deploys the rancher-server service which will afterwards deploy several other Kubernetes Resources through Helm.
The unexpected part is that the Resources deployed through Helm also contain labels like this: "app.juju.
This seems to be causing issues in the rancher-server pod which gives the following error message:
2021/01/05 14:01:21 [ERROR] failed to sync schemas: .authorization.
There should be a possibility of avoiding these labels being added.
To reproduce this follow the deployment instructions of the charm linked above. (Use a disposable cluster, as it will fill it with a lot of not easily removable resources). Afterwards after some minutes check the logs of the workload pod of the rancher charm where you will encounter the above mentioned error messages.
Changed in juju: | |
status: | New → Triaged |
milestone: | none → 2.9.1 |
importance: | Undecided → Medium |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Hey Dominik,
This is our model operator service adding these labels so we can make sure that Juju cleans up after itself correctly. On face value this doesn't appear as a Juju bug to me as we should be free to add labels to help us manage. For example's our labels are scoped off to our domain.
The rancher error doesn't 100% indicate the labels are the problem as well. In any event I am very curious to dig into this one and work on a solution with you whatever that may look like.
I'll do some testing on my end to get the lay of the land.
Cheers
tlm