Show / Hide Table of Contents

Class V1FileKeySelector

FileKeySelector selects a key of the env file.

Inheritance
object
V1FileKeySelector
Implements
IEquatable<V1FileKeySelector>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
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
Type Name Description
V1FileKeySelector original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
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
Type Description
string
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
Type Description
bool?
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
Type Description
string
View Source

VolumeName

The name of the volume mount containing the env file.

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

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(V1FileKeySelector?)

Declaration
public virtual bool Equals(V1FileKeySelector? other)
Parameters
Type Name Description
V1FileKeySelector 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 ==(V1FileKeySelector?, V1FileKeySelector?)

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

operator !=(V1FileKeySelector?, V1FileKeySelector?)

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

Implements

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