unable to mount additional volumes by mutating StatefulSet since rc11 without error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Heather Lanigan |
Bug Description
I've been experimenting with the new `juju trust` functionality with my kubernetes dashboard charm (https:/
I previously had this working by creating a bunch of Kubernetes resources using the K8s API, including a ServiceAccount -- this is done in a method called during the `install` hook.
When the PebbleReadyEvent fires, I was then using the Kubernetes API to mutate the StatefulSet to ensure that the ServiceAccount token was mounted into the dashboard container. Since rc11, that results in repeated errors like so:
```
controller-0: 15:44:30 ERROR juju.worker.
```
The line where I'm adding the various parts to the StatefulSet is: https:/
Possibly related (or at least similar) to: https:/
Changed in juju: | |
status: | Triaged → In Progress |
assignee: | nobody → Heather Lanigan (hmlanigan) |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
milestone: | 2.9-rc13 → 2.9.0 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Looks like this check
if vol.Secret != nil && strings. HasPrefix( vol.Secret. SecretName, a.name+"-token") { Tracef( "ignoring volume source for service account secret: %v", vol.Name)
logger.
continue
}
in caas/kubernetes /provider/ appication/ application. go
needs to be tweaked