EnvVarSource class
EnvVarSource represents a source for the value of an EnvVar.
Constructors
-
EnvVarSource({Input<
ConfigMapKeySelector> ? configMapKeyRef, Input<ObjectFieldSelector> ? fieldRef, Input<FileKeySelector> ? fileKeyRef, Input<ResourceFieldSelector> ? resourceFieldRef, Input<SecretKeySelector> ? secretKeyRef}) -
Creates a new EnvVarSource.
configMapKeyRefSelects a key of a ConfigMap.fieldRefSelects a field of the pod: supports metadata.name, metadata.namespace,metadata.labels['<KEY>'],metadata.annotations['<KEY>'], spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.fileKeyRefFileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled.resourceFieldRefSelects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.secretKeyRefSelects a key of a secret in the pod's namespaceconst -
EnvVarSource.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
configMapKeyRef
→ Input<
ConfigMapKeySelector> ? -
Selects a key of a ConfigMap.
final
-
fieldRef
→ Input<
ObjectFieldSelector> ? -
Selects a field of the pod: supports metadata.name, metadata.namespace,
metadata.labels['<KEY>'],metadata.annotations['<KEY>'], spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.final -
fileKeyRef
→ Input<
FileKeySelector> ? -
FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
resourceFieldRef
→ Input<
ResourceFieldSelector> ? -
Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secretKeyRef
→ Input<
SecretKeySelector> ? -
Selects a key of a secret in the pod's namespace
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited