Comment 2 for bug 1956615

Revision history for this message
Adam Dyess (addyess) wrote (last edit ):

Workaround:
As as work-around I've lifted the current action's solution out of the main branch to a gist which lets an admin user run with `juju run`

I've provided an example run with the user "example". in this case, i'm targetting the application kubernetes-control-plane, but in some deployments it may be kubernetes-master

```
wget https://gist.githubusercontent.com/addyess/681a2733987beeffeb11ddcf3ff2d799/raw/e1aab89c977977772583bb97e0ddc823303a273e/lp-1956615.sh -O LP1956615.sh

USER="example"
GROUPS=""
juju run -u kubernetes-control-plane/leader -- bash -c "$(cat LP1956615.sh) $USER $GROUPS"
juju run-actions kubernetes-control-plane/leader user-list -- wait
juju scp kubernetes-control-plane/0:/home/ubuntu/example-kubeconfig .
```