diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index e92ba89fba9..fbaf2fb6f16 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -14762,13 +14762,31 @@ "v1.EnvVarSource": { "id": "v1.EnvVarSource", "description": "EnvVarSource represents a source for the value of an EnvVar.", - "required": [ - "fieldRef" - ], "properties": { "fieldRef": { "$ref": "v1.ObjectFieldSelector", - "description": "Selects a field of the pod. Only name and namespace are supported." + "description": "Selects a field of the pod; only name and namespace are supported." + }, + "configMapKeyRef": { + "$ref": "v1.ConfigMapKeySelector", + "description": "Selects a key of a ConfigMap." + } + } + }, + "v1.ConfigMapKeySelector": { + "id": "v1.ConfigMapKeySelector", + "description": "Selects a key from a ConfigMap.", + "required": [ + "key" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the referent. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names" + }, + "key": { + "type": "string", + "description": "The key to select." } } }, diff --git a/api/swagger-spec/v1beta1.json b/api/swagger-spec/v1beta1.json index 2a9edc19100..7883e4be804 100644 --- a/api/swagger-spec/v1beta1.json +++ b/api/swagger-spec/v1beta1.json @@ -4852,13 +4852,31 @@ "v1.EnvVarSource": { "id": "v1.EnvVarSource", "description": "EnvVarSource represents a source for the value of an EnvVar.", - "required": [ - "fieldRef" - ], "properties": { "fieldRef": { "$ref": "v1.ObjectFieldSelector", - "description": "Selects a field of the pod. Only name and namespace are supported." + "description": "Selects a field of the pod; only name and namespace are supported." + }, + "configMapKeyRef": { + "$ref": "v1.ConfigMapKeySelector", + "description": "Selects a key of a ConfigMap." + } + } + }, + "v1.ConfigMapKeySelector": { + "id": "v1.ConfigMapKeySelector", + "description": "Selects a key from a ConfigMap.", + "required": [ + "key" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the referent. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names" + }, + "key": { + "type": "string", + "description": "The key to select." } } }, diff --git a/docs/api-reference/extensions/v1beta1/definitions.html b/docs/api-reference/extensions/v1beta1/definitions.html index 1f859ed93f9..bca0fd61dc1 100755 --- a/docs/api-reference/extensions/v1beta1/definitions.html +++ b/docs/api-reference/extensions/v1beta1/definitions.html @@ -3077,11 +3077,18 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
fieldRef
Selects a field of the pod. Only name and namespace are supported.
true
Selects a field of the pod; only name and namespace are supported.
false
configMapKeyRef
Selects a key of a ConfigMap.
false
Selects a key from a ConfigMap.
+Name | +Description | +Required | +Schema | +Default | +
---|---|---|---|---|
name |
+Name of the referent. More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names |
+false |
+string |
++ |
key |
+The key to select. |
+true |
+string |
++ |