Skip to main content

Interface: KubeconfigObject

KubeconfigObject is the object that is stored in indexDB as string format. It is a JSON encoded version of the kubeconfig file. It is used to store the kubeconfig for stateless clusters. This is basically a k8s client - go Kubeconfig object. KubeconfigObject holds the information needed to build connect to remote kubernetes clusters as a given user *

See

  • more info
  • storeStatelessClusterKubeconfig
  • getStatelessClusterKubeConfigs
  • findKubeconfigByClusterName

Properties

apiVersion

apiVersion: string;

version of the kubeconfig file.

Defined in

src/lib/k8s/kubeconfig.ts:14


clusters

clusters: object[];

Clusters is a map of referencable names to cluster configs.

See

more info

Defined in

src/lib/k8s/kubeconfig.ts:34


contexts

contexts: object[];

Contexts is a map of referencable names to context configs.

See

more info

Defined in

src/lib/k8s/kubeconfig.ts:130


current-context

current-context: string;

CurrentContext is the name of the context that you would like to use by default

Defined in

src/lib/k8s/kubeconfig.ts:154


extensions?

optional extensions: object[];

Extensions holds additional information. This is useful for extenders so that reads and writes don't clobber unknown fields

See

more info

Defined in

src/lib/k8s/kubeconfig.ts:158


kind

kind: string;

kind is the type of the kubeconfig file. It is always 'Config'.

Defined in

src/lib/k8s/kubeconfig.ts:16


preferences?

optional preferences: object;

Preferences holds general information to be use for cli interactions

colors?

optional colors: boolean;

colors specifies whether output should use colors.

extensions?

optional extensions: object[];

extensions holds additional information. This is useful for extenders so that reads and writes don't clobber unknown fields on the Preferences object.

See

more info

Defined in

src/lib/k8s/kubeconfig.ts:20


users

users: object[];

AuthInfos is a map of referencable names to user configs.

See

more info

Defined in

src/lib/k8s/kubeconfig.ts:67