Class V1EnvVar
EnvVar represents an environment variable present in a Container.
Assembly: KubernetesClient.dll
Syntax
public record V1EnvVar : IEquatable<V1EnvVar>
Constructors
View Source
V1EnvVar()
Declaration
View Source
V1EnvVar(V1EnvVar)
Declaration
protected V1EnvVar(V1EnvVar original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Name
Name of the environment variable. May consist of any printable ASCII characters
except '='.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
View Source
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
View Source
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
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1EnvVar?)
Declaration
public virtual bool Equals(V1EnvVar? 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 ==(V1EnvVar?, V1EnvVar?)
Declaration
public static bool operator ==(V1EnvVar? left, V1EnvVar? right)
Parameters
Returns
View Source
operator !=(V1EnvVar?, V1EnvVar?)
Declaration
public static bool operator !=(V1EnvVar? left, V1EnvVar? right)
Parameters
Returns
Implements