Class V1EnvVarSource
EnvVarSource represents a source for the value of an EnvVar.
Inheritance
V1EnvVarSource
Assembly: KubernetesClient.dll
Syntax
public record V1EnvVarSource : IEquatable<V1EnvVarSource>
Constructors
V1EnvVarSource()
Declaration
V1EnvVarSource(V1EnvVarSource)
Declaration
protected V1EnvVarSource(V1EnvVarSource original)
Parameters
Properties
ConfigMapKeyRef
Selects a key of a ConfigMap.
Declaration
[JsonPropertyName("configMapKeyRef")]
public V1ConfigMapKeySelector ConfigMapKeyRef { get; set; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
FieldRef
Selects a field of the pod: supports metadata.name, metadata.namespace,
metadata.labels[' <KEY> '], metadata.annotations[' <KEY> '], spec.nodeName,
spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
Declaration
[JsonPropertyName("fieldRef")]
public V1ObjectFieldSelector FieldRef { get; set; }
Property Value
FileKeyRef
FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to
be enabled.
Declaration
[JsonPropertyName("fileKeyRef")]
public V1FileKeySelector FileKeyRef { get; set; }
Property Value
ResourceFieldRef
Selects a resource of the container: only resources limits and requests
(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu,
requests.memory and requests.ephemeral-storage) are currently supported.
Declaration
[JsonPropertyName("resourceFieldRef")]
public V1ResourceFieldSelector ResourceFieldRef { get; set; }
Property Value
SecretKeyRef
Selects a key of a secret in the pod's namespace
Declaration
[JsonPropertyName("secretKeyRef")]
public V1SecretKeySelector SecretKeyRef { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1EnvVarSource?)
Declaration
public virtual bool Equals(V1EnvVarSource? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1EnvVarSource?, V1EnvVarSource?)
Declaration
public static bool operator ==(V1EnvVarSource? left, V1EnvVarSource? right)
Parameters
Returns
operator !=(V1EnvVarSource?, V1EnvVarSource?)
Declaration
public static bool operator !=(V1EnvVarSource? left, V1EnvVarSource? right)
Parameters
Returns
Implements