Show / Hide Table of Contents

Class V1EnvVarSource

EnvVarSource represents a source for the value of an EnvVar.

Inheritance
object
V1EnvVarSource
Implements
IEquatable<V1EnvVarSource>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1EnvVarSource : IEquatable<V1EnvVarSource>

Constructors

View Source

V1EnvVarSource()

Declaration
public V1EnvVarSource()
View Source

V1EnvVarSource(V1EnvVarSource)

Declaration
protected V1EnvVarSource(V1EnvVarSource original)
Parameters
Type Name Description
V1EnvVarSource original

Properties

View Source

ConfigMapKeyRef

Selects a key of a ConfigMap.

Declaration
[JsonPropertyName("configMapKeyRef")]
public V1ConfigMapKeySelector ConfigMapKeyRef { get; set; }
Property Value
Type Description
V1ConfigMapKeySelector
View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
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
Type Description
V1ObjectFieldSelector
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
Type Description
V1FileKeySelector
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
Type Description
V1ResourceFieldSelector
View Source

SecretKeyRef

Selects a key of a secret in the pod's namespace

Declaration
[JsonPropertyName("secretKeyRef")]
public V1SecretKeySelector SecretKeyRef { get; set; }
Property Value
Type Description
V1SecretKeySelector

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1EnvVarSource?)

Declaration
public virtual bool Equals(V1EnvVarSource? other)
Parameters
Type Name Description
V1EnvVarSource other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1EnvVarSource?, V1EnvVarSource?)

Declaration
public static bool operator ==(V1EnvVarSource? left, V1EnvVarSource? right)
Parameters
Type Name Description
V1EnvVarSource left
V1EnvVarSource right
Returns
Type Description
bool
View Source

operator !=(V1EnvVarSource?, V1EnvVarSource?)

Declaration
public static bool operator !=(V1EnvVarSource? left, V1EnvVarSource? right)
Parameters
Type Name Description
V1EnvVarSource left
V1EnvVarSource right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX