Files
kubelogin/pkg/usecases/setup/setup.md
Hidetake Iwata 3a38753ee7 Refactor setup command and docs (#1253)
* Refactor setup command and docs

* Fix slice flags

* Fix
2025-01-25 16:08:28 +09:00

539 B

Authenticated with the OpenID Connect Provider

You got the token with the following claims:

{{ .IDTokenPrettyJSON }}

Set up the kubeconfig

You can run the following command to set up the kubeconfig:

kubectl config set-credentials oidc \
  --exec-api-version=client.authentication.k8s.io/v1 \
  --exec-interactive-mode=Never \
  --exec-command=kubectl \
  --exec-arg=oidc-login \
  --exec-arg=get-token \
{{- range $index, $flag := .Flags }}
  {{- if $index}} \{{end}}
  --exec-arg={{ $flag | quote }}
{{- end }}