Class ClusterLoginExport
Holds all of the information required to import/export a cluster login. This includes the Kubernetes cluster, login, and NEONKUBE extensions.
Namespace: Neon.Kube.Config
Assembly: Neon.Kube.dll
Syntax
public class ClusterLoginExport
Constructors
ClusterLoginExport()
Default constructor.
Declaration
public ClusterLoginExport()
Properties
Cluster
The Kubernetes cluster.
Declaration
[JsonProperty(PropertyName = "cluster", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "cluster", ApplyNamingConventions = false)]
public KubeConfigCluster Cluster { get; set; }
Property Value
Type | Description |
---|---|
KubeConfigCluster |
Context
The Kubernetes context.
Declaration
[JsonProperty(PropertyName = "context", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "context", ApplyNamingConventions = false)]
public KubeConfigContext Context { get; set; }
Property Value
Type | Description |
---|---|
KubeConfigContext |
User
The Kubernetes user.
Declaration
[JsonProperty(PropertyName = "User", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "user", ApplyNamingConventions = false)]
public KubeConfigUser User { get; set; }
Property Value
Type | Description |
---|---|
KubeConfigUser |
Methods
Validate()
Ensures that the login information is valid.
Declaration
public void Validate()
Exceptions
Type | Condition |
---|---|
NeonKubeException | Thrown if the instance is invalid. |