Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support auth plugins #168

Closed
anyasabo opened this issue Apr 8, 2019 · 0 comments

Comments

@anyasabo
Copy link
Contributor

commented Apr 8, 2019

Client-go supports some third party auth plugins, such as OIDC and Azure. Kubectl supports these, but squash fails when it tries to use a kube config that uses these methods. This prevents usage if the only auth method people have is, for example, OIDC. There's more detail here on how to add support for plugins:
https://github.com/kubernetes/client-go/tree/master/examples

With a kube config that uses that method I receive this error:

$ squashctl
Attaching debugger
? Select a debugger dlv
Error: choosing namespace: error connecting to current Kubernetes Context Host $MASTER_URL; please double check your Kubernetes environment: No Auth Provider found for name "oidc"
Usage:
  squashctl [flags]
  squashctl [command]

Available Commands:
  completion  generate auto completion for your shell
  deploy      deploy squash or a demo microservice
  help        Help about any command
  squash      manage the squash
  utils       call various squash utils

Flags:
      --container string           Container to debug
      --container-repo string      debug container repo to use (default "quay.io/solo-io")
      --container-version string   debug container version to use (default "0.5.7")
      --crisock string             The path to the CRI socket (default "/var/run/dockershim.sock")
      --debugger string            Debugger to use
  -h, --help                       help for squashctl
      --json                       output json format
      --localport int              local port to use to connect to debugger (defaults to random free port)
      --machine                    machine mode input and output
      --namespace string           Namespace to debug
      --no-clean                   don't clean temporary pod when existing
      --no-guess-debugger          don't auto detect debugger to use
      --no-guess-pod               don't auto detect pod to use
      --pod string                 Pod to debug
      --squash-namespace string    the namespace where squash resources will be deployed (default: squash-debugger) (default "squash-debugger")
      --timeout int                timeout in seconds to wait for debug pod to be ready (default 300)
      --version                    version for squashctl

Use "squashctl [command] --help" for more information about a command.

choosing namespace: error connecting to current Kubernetes Context Host $MASTER_URL; please double check your Kubernetes environment: No Auth Provider found for name "oidc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.