Request for classic confinement: kubectx

Hi,

I’ve built a snap for https://github.com/ahmetb/kubectx

This tool requires classic confinement because its sole purpose is making kubectl easier to use through manipulation of the .kube/config file. If there is another way to manipulate the .kube/config file I will happily try that but I believe it’s impossible as things stand?

Thanks
Sam

The personal-files interface can be used for this. Eg:

name: kubectx

plugs:
  dot-kube-config:
    interface: personal-files
    write:
    - $HOME/.kube/config
    - $HOME/.kube/config.lock

apps:
  kubectx:
    plugs:
    - dot-kube-config

There are other applications that modify ~/.kube/config in this manner in the store. See The personal-files interface for details.

@sweston - Can you please respond to @jdstrand’s suggestion above? It would seem that personal-files should allow you to accomplish this and classic confinement should not be needed but it would be great if you could confirm this.

@sweston - I am removing this request for classic confinement from our internal queue since it looks like personal-files should provide the required access. If this is not the case, please reply and we can follow-up.