Class V1EnvVarSource
EnvVarSource represents a source for the value of an EnvVar.
Inheritance
V1EnvVarSource
Assembly: KubernetesClient.dll
Syntax
public record V1EnvVarSource : IEquatable<V1EnvVarSource>
Constructors
View Source
V1EnvVarSource()
Declaration
View Source
V1EnvVarSource(V1EnvVarSource)
Declaration
protected V1EnvVarSource(V1EnvVarSource original)
Parameters
Properties
View Source
ConfigMapKeyRef
Selects a key of a ConfigMap.
Declaration
[JsonPropertyName("configMapKeyRef")]
public V1ConfigMapKeySelector ConfigMapKeyRef { get; set; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
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
View Source
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
View Source
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
View Source
SecretKeyRef
Selects a key of a secret in the pod's namespace
Declaration
[JsonPropertyName("secretKeyRef")]
public V1SecretKeySelector SecretKeyRef { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1EnvVarSource?)
Declaration
public virtual bool Equals(V1EnvVarSource? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1EnvVarSource?, V1EnvVarSource?)
Declaration
public static bool operator ==(V1EnvVarSource? left, V1EnvVarSource? right)
Parameters
Returns
View Source
operator !=(V1EnvVarSource?, V1EnvVarSource?)
Declaration
public static bool operator !=(V1EnvVarSource? left, V1EnvVarSource? right)
Parameters
Returns
Implements