Class V1FileKeySelector
FileKeySelector selects a key of the env file.
Inheritance
V1FileKeySelector
Assembly: KubernetesClient.dll
Syntax
public record V1FileKeySelector : IEquatable<V1FileKeySelector>
Constructors
View Source
V1FileKeySelector()
Declaration
public V1FileKeySelector()
View Source
V1FileKeySelector(V1FileKeySelector)
Declaration
protected V1FileKeySelector(V1FileKeySelector original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Key
The key within the env file. An invalid key will prevent the pod from starting.
The keys defined within a source may consist of any printable ASCII characters
except '='. During Alpha stage of the EnvFiles feature gate, the key size is
limited to 128 characters.
Declaration
[JsonPropertyName("key")]
public string Key { get; set; }
Property Value
View Source
Optional
Specify whether the file or its key must be defined. If the file or key does not
exist, then the env var is not published. If optional is set to true and the
specified key does not exist, the environment variable will not be set in the
Pod's containers.
If optional is set to false and the specified key does not exist, an error will
be returned during Pod creation.
Declaration
[JsonPropertyName("optional")]
public bool? Optional { get; set; }
Property Value
View Source
Path
The path within the volume from which to select the file. Must be relative and
may not contain the '..' path or start with '..'.
Declaration
[JsonPropertyName("path")]
public string Path { get; set; }
Property Value
View Source
VolumeName
The name of the volume mount containing the env file.
Declaration
[JsonPropertyName("volumeName")]
public string VolumeName { 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(V1FileKeySelector?)
Declaration
public virtual bool Equals(V1FileKeySelector? 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 ==(V1FileKeySelector?, V1FileKeySelector?)
Declaration
public static bool operator ==(V1FileKeySelector? left, V1FileKeySelector? right)
Parameters
Returns
View Source
operator !=(V1FileKeySelector?, V1FileKeySelector?)
Declaration
public static bool operator !=(V1FileKeySelector? left, V1FileKeySelector? right)
Parameters
Returns
Implements