diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index fbaf2fb6f16..cbc65ba3b86 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -14536,13 +14536,10 @@ "v1.SecretVolumeSource": { "id": "v1.SecretVolumeSource", "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", - "required": [ - "secretName" - ], "properties": { "secretName": { "type": "string", - "description": "SecretName is the name of a secret in the pod's namespace. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets" + "description": "Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets" } } }, @@ -14770,6 +14767,10 @@ "configMapKeyRef": { "$ref": "v1.ConfigMapKeySelector", "description": "Selects a key of a ConfigMap." + }, + "secretKeyRef": { + "$ref": "v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" } } }, @@ -14790,6 +14791,23 @@ } } }, + "v1.SecretKeySelector": { + "id": "v1.SecretKeySelector", + "description": "SecretKeySelector selects a key of a Secret.", + "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 of the secret to select from. Must be a valid secret key." + } + } + }, "v1.VolumeMount": { "id": "v1.VolumeMount", "description": "VolumeMount describes a mounting of a Volume within a container.", diff --git a/api/swagger-spec/v1beta1.json b/api/swagger-spec/v1beta1.json index 7883e4be804..c6869483de2 100644 --- a/api/swagger-spec/v1beta1.json +++ b/api/swagger-spec/v1beta1.json @@ -4360,13 +4360,10 @@ "v1.SecretVolumeSource": { "id": "v1.SecretVolumeSource", "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", - "required": [ - "secretName" - ], "properties": { "secretName": { "type": "string", - "description": "SecretName is the name of a secret in the pod's namespace. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets" + "description": "Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets" } } }, @@ -4860,6 +4857,10 @@ "configMapKeyRef": { "$ref": "v1.ConfigMapKeySelector", "description": "Selects a key of a ConfigMap." + }, + "secretKeyRef": { + "$ref": "v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" } } }, @@ -4880,6 +4881,23 @@ } } }, + "v1.SecretKeySelector": { + "id": "v1.SecretKeySelector", + "description": "SecretKeySelector selects a key of a Secret.", + "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 of the secret to select from. Must be a valid secret key." + } + } + }, "v1.ResourceRequirements": { "id": "v1.ResourceRequirements", "description": "ResourceRequirements describes the compute resource requirements.", diff --git a/docs/api-reference/extensions/v1beta1/definitions.html b/docs/api-reference/extensions/v1beta1/definitions.html index bca0fd61dc1..bca7e32ad52 100755 --- a/docs/api-reference/extensions/v1beta1/definitions.html +++ b/docs/api-reference/extensions/v1beta1/definitions.html @@ -3002,8 +3002,8 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
secretName
SecretName is the name of a secret in the pod’s namespace. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets
true
Name of the secret in the pod’s namespace to use. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets
false
string
secretKeyRef
Selects a key of a secret in the pod’s namespace
false
SecretKeySelector selects a key of a Secret.
+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 of the secret to select from. Must be a valid secret key. |
+true |
+string |
++ |