Class KubeConfigUser
Describes a Kubernetes user configuration.
Namespace: Neon.Kube.Config
Assembly: Neon.Kube.dll
Syntax
public class KubeConfigUser
Constructors
KubeConfigUser()
Default constructor.
Declaration
public KubeConfigUser()
Properties
ClusterName
Specifies the name of the referenced cluster. NEONKUBE uses this for identifying users to be deleted when related clusters are removed.
This will be null for non-NEONKUBE clusters.
Declaration
[JsonIgnore]
[YamlIgnore]
public string ClusterName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
The local nickname for the user.
Declaration
[JsonProperty(PropertyName = "name", Required = Required.Always)]
[YamlMember(Alias = "name", ApplyNamingConventions = false)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
User
The user properties.
Declaration
[JsonProperty(PropertyName = "user", Required = Required.Always)]
[YamlMember(Alias = "user", ApplyNamingConventions = false)]
public KubeConfigUserConfig User { get; set; }
Property Value
| Type | Description |
|---|---|
| KubeConfigUserConfig |
Methods
GetExtensionValue<T>(string, T)
Returns an extension value.
Declaration
public T GetExtensionValue<T>(string name, T @default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Specifies the extension name. |
| T | default | Specifies the value to be returned when the extension is not found. |
Returns
| Type | Description |
|---|---|
| T | The extension value. |
Type Parameters
| Name | Description |
|---|---|
| T | Specifies the value type. |
SetExtensionValue<T>(string, T)
Sets an extension value.
Declaration
public void SetExtensionValue<T>(string name, T value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Specifies the extension name. |
| T | value | Specifies the value being set. |
Type Parameters
| Name | Description |
|---|---|
| T | Specifies the value type. |