Closed knkski closed 3 years ago
The user is added to the group, but it needs to "relogin" to take effect. Im still trying to figure out how to relogin the use with shelljs.
For the meantime, i use sg microk8s -c 'microk8s enable kubeflow'
when enabling an addon which requires non root.
In order to execute microk8s
command which cannot be run with sudo
, use the sg
command instead.
The runner
user is added to the microk8s
group, although it doesnt show up when you do id
, since one needs to relogin in the terminal.
I have a Github Action that looks like this:
That results in this output for the
Test user added
step:I would expect to see the
microk8s
group listed in there. This might be related to #5, but it's hard to tell without theset('-v');
option set.