a new model operator secret is created whenever controller restarts

Bug #1946741 reported by Yang Kelvin Liu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

I deleted controller pods a few times for restarting the controller, then I got lots of model operator secrets created.

```console
# delete controller pod a few times:
$ mkubectl -ncontroller-k1 delete pod/controller-0

$ mkubectl -ncontroller-k1 get secrets -o json | jq '.items[] | select(.metadata.annotations["kubernetes.io/service-account.name"]=="modeloperator") | .metadata.name'
"modeloperator-token-2c29m"
"modeloperator-token-vlc7j"
"modeloperator-token-zs2nx"
"modeloperator-token-d9jv2"
"modeloperator-token-784s7"
"modeloperator-token-nnt4s"
"modeloperator-token-7dkhr"
"modeloperator-token-m9t9f"
"modeloperator-token-gtxrd"
"modeloperator-token-gjn24"
"modeloperator-token-rmz94"
"modeloperator-token-q59s6"
"modeloperator-token-vkgc8"
"modeloperator-token-nwwrx"
"modeloperator-token-v528n"
"modeloperator-token-fdzt8"
"modeloperator-token-m89jr"
"modeloperator-token-2spnz"

```

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.9-next
tags: added: k8s
tags: added: ju-9
tags: added: ju-17
tags: removed: ju-17 ju-9
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This Medium-priority bug has not been updated in 60 days, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.9-next → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.