Class K8SConfiguration
kubeconfig configuration model. Holds the information needed to build connect to remote Kubernetes clusters as a given user.
Inherited Members
Namespace: k8s.KubeConfigModels
Assembly: KubernetesClient.dll
Syntax
public class K8SConfiguration
Remarks
Should be kept in sync with https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/client-go/tools/clientcmd/api/v1/types.go Should update MergeKubeConfig in KubernetesClientConfiguration.ConfigFile.cs if updated.
Constructors
View SourceK8SConfiguration()
Declaration
public K8SConfiguration()
Properties
View SourceApiVersion
Declaration
public string ApiVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Clusters
Gets or sets a map of referencable names to cluster configs.
Declaration
public IEnumerable<Cluster> Clusters { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<Cluster> |
Contexts
Gets or sets a map of referencable names to context configs.
Declaration
public IEnumerable<Context> Contexts { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<Context> |
CurrentContext
Gets or sets the name of the context that you would like to use by default.
Declaration
public string CurrentContext { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Extensions
Gets or sets additional information. This is useful for extenders so that reads and writes don't clobber unknown fields.
Declaration
public IEnumerable<NamedExtension> Extensions { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<NamedExtension> |
FileName
Gets or sets the name of the Kubernetes configuration file. This property is set only when the configuration was loaded from disk, and can be used to resolve relative paths.
Declaration
public string FileName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Kind
Declaration
public string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Preferences
Gets or sets general information to be use for CLI interactions
Declaration
public IDictionary<string, object> Preferences { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |
Users
Gets or sets a map of referencable names to user configs
Declaration
public IEnumerable<User> Users { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<User> |