{{ define "content" }}
{{ if eq .ConfigErr nil }}

Your kubeconfig is valid!

Glasskube will use the {{ .CurrentContext }} context.

{{ if not .DefaultKubeconfigExists }}

If you want, Glasskube can save this config as your default kubeconfig for your computer. That means, that other kubernetes commands you might want to use (like kubectl) will also use this kubeconfig file.

Use for this session only
{{ else }}

Since a file already exists at the location of your default kubeconfig, Glasskube can not save this config as your default. If you want to do it manually, you can move the file to this location on your computer: {{ .KubeconfigDefaultLocation }}

{{ end }} {{ else }}

Oh no…

Glasskube was not able to parse your selected kubeconfig file:
{{ .ConfigErr }}
{{ end }}
{{ end }}