get_service_ip is not honoring the kubectl config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kubernetes Control Plane Charm |
Fix Released
|
Critical
|
Cory Johns |
Bug Description
As of 1.18-beta.2, kubectl no longer falls back to connecting to localhost:8080 when no config file can be found and instead generates a fatal error. This leads to the following error:
unit-kubernetes
unit-kubernetes
unit-kubernetes
unit-kubernetes
unit-kubernetes
unit-kubernetes
unit-kubernetes
unit-kubernetes
unit-kubernetes
The get_service_ip in kubernetes-common needs to be fixed to explicitly point to the config file since HOME is not set in a Juju hook context.
Changed in charm-kubernetes-master: | |
status: | New → In Progress |
importance: | Undecided → Critical |
assignee: | nobody → Cory Johns (johnsca) |
milestone: | none → 1.18 |
Changed in charm-kubernetes-master: | |
status: | Fix Committed → Fix Released |
PR: https:/ /github. com/charmed- kubernetes/ layer-kubernete s-common/ pull/11