canonical / k8s-snap

Canonical Kubernetes is an opinionated and CNCF conformant Kubernetes operated by Snaps and Charms, which come together to bring simplified operations and an enhanced security posture on any infrastructure.
GNU General Public License v3.0
43 stars 13 forks source link

Fix TiCS action's permission error #694

Closed eaudetcobello closed 1 month ago

eaudetcobello commented 1 month ago

make go.unit has to be run with elevated privileges since we now change the owner of /opt/cni/bin to root. See https://github.com/canonical/k8s-snap/blob/a2c00fb6be9951f582e139d83d97ad1dceb4ec13/src/k8s/pkg/k8sd/setup/directories.go#L72

This operation fails if make go.unit is run as a regular user.