Argo Workflows · Schema
io.k8s.api.core.v1.EnvVarSource
EnvVarSource represents a source for the value of an EnvVar.
CNCFContainersData ProcessingKubernetesMachine LearningOpen SourceWorkflow Engine
Properties
| Name | Type | Description |
|---|---|---|
| configMapKeyRef | object | Selects a key of a ConfigMap. |
| fieldRef | object | Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels[' |
| fileKeyRef | object | FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled. |
| resourceFieldRef | object | 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 currentl |
| secretKeyRef | object | Selects a key of a secret in the pod's namespace |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/argo-workflows/refs/heads/main/json-schema/argo-workflows-io-k8s-api-core-v1-env-var-source-schema.json",
"title": "io.k8s.api.core.v1.EnvVarSource",
"description": "EnvVarSource represents a source for the value of an EnvVar.",
"type": "object",
"properties": {
"configMapKeyRef": {
"description": "Selects a key of a ConfigMap.",
"$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector"
},
"fieldRef": {
"description": "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.",
"$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector"
},
"fileKeyRef": {
"description": "FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled.",
"$ref": "#/definitions/io.k8s.api.core.v1.FileKeySelector"
},
"resourceFieldRef": {
"description": "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.",
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector"
},
"secretKeyRef": {
"description": "Selects a key of a secret in the pod's namespace",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
}
}
}