Class V1FileKeySelector
FileKeySelector selects a key of the env file.
Inheritance
V1FileKeySelector
Assembly: KubernetesClient.dll
Syntax
public record V1FileKeySelector : IEquatable<V1FileKeySelector>
Constructors
V1FileKeySelector()
Declaration
public V1FileKeySelector()
V1FileKeySelector(V1FileKeySelector)
Declaration
protected V1FileKeySelector(V1FileKeySelector original)
Parameters
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
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
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
VolumeName
The name of the volume mount containing the env file.
Declaration
[JsonPropertyName("volumeName")]
public string VolumeName { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1FileKeySelector?)
Declaration
public virtual bool Equals(V1FileKeySelector? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1FileKeySelector?, V1FileKeySelector?)
Declaration
public static bool operator ==(V1FileKeySelector? left, V1FileKeySelector? right)
Parameters
Returns
operator !=(V1FileKeySelector?, V1FileKeySelector?)
Declaration
public static bool operator !=(V1FileKeySelector? left, V1FileKeySelector? right)
Parameters
Returns
Implements