Hello I would like to request classic confinement for the plugin kubectl-iexec.
I am a snap n00b but as far as I can tell this is required to read the KUBECONFIG file in the user’s home directory (it is in a hidden dir
~/.kube/config). This is the same confinement that kubectl uses which is how I discovered it would be necessary.
The error without classic confinement is
Error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
If possible I would love any suggestions to work around this, here is what I have unsuccesfully attempted:
name: kubectl-iexec base: core18 version: '1.9.0' summary: Kubernetes plugin to interactively exec to a pod description: | Kubectl-iexec is a plugin providing an interactive selector to exec into a running pod. For a search filter, the plugin will return a list of pods and containers that match, then perform a kubectl exec to the selection. grade: devel # must be 'stable' to release into candidate/stable channels confinement: devmode # use 'strict' once you have the right plugs and slots parts: kubect-iexec: plugin: go go-importpath: github.com/gabeduke/kubectl-iexec source: . source-type: git apps: kubectl-iexec: command: kubectl-iexec plugs: [ "home", "network", "network-bind", "personal-files" ] plugs: kubectl-iexec: interface: personal-files read: - $HOME/.kube