Show / Hide Table of Contents

Class K8SConfiguration

kubeconfig configuration model. Holds the information needed to build connect to remote Kubernetes clusters as a given user.

Inheritance
object
K8SConfiguration
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 Source

K8SConfiguration()

Declaration
public K8SConfiguration()

Properties

View Source

ApiVersion

Declaration
public string ApiVersion { get; set; }
Property Value
Type Description
string
View Source

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>
View Source

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>
View Source

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
View Source

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>
View Source

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
View Source

Kind

Declaration
public string Kind { get; set; }
Property Value
Type Description
string
View Source

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>
View Source

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>
  • View Source
In this article
Back to top Generated by DocFX