Show / Hide Table of Contents

Class V1EnvVar

EnvVar represents an environment variable present in a Container.

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

Constructors

V1EnvVar()

Declaration
public V1EnvVar()

V1EnvVar(V1EnvVar)

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

Properties

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

Name

Name of the environment variable. May consist of any printable ASCII characters except '='.

Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type Description
string

Value

Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the \((VAR_NAME) syntax: i.e. "$\)(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to " ".

Declaration
[JsonPropertyName("value")]
public string Value { get; set; }
Property Value
Type Description
string

ValueFrom

Source for the environment variable's value. Cannot be used if value is not empty.

Declaration
[JsonPropertyName("valueFrom")]
public V1EnvVarSource ValueFrom { get; set; }
Property Value
Type Description
V1EnvVarSource

Methods

Equals(object?)

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

Equals(V1EnvVar?)

Declaration
public virtual bool Equals(V1EnvVar? other)
Parameters
Type Name Description
V1EnvVar other
Returns
Type Description
bool

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

operator ==(V1EnvVar?, V1EnvVar?)

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

operator !=(V1EnvVar?, V1EnvVar?)

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

Implements

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