kubeconfig file is written for every hook
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kubernetes Control Plane Charm |
Fix Released
|
Critical
|
Cory Johns |
Bug Description
This is a follow-up to:
https:/
We call build_kubeconfig every time certs and auth are available (which is every hook once the cluster is up). The initial fix guarded the write with a data_changed, but that proved problematic because we weren't catching important fields that were changing:
https:/
We *could* re-implement that and add all the config opts that we care about (server, ca, pass, ks, etc), but that's awfully easy to miss a future config value. It's better to write an accurate config every hook than to miss a write when config changed.
We could also implement a "generate_
Changed in charm-kubernetes-master: | |
importance: | Undecided → Low |
status: | New → Triaged |
tags: | added: backport-needed |
tags: | added: seg sts |
https:/ /github. com/charmed- kubernetes/ layer-kubernete s-common/ pull/17