Merge pull request #39446 from fraenkel/env_secrets
Automatic merge from submit-queue (batch tested with PRs 39446, 40023, 36853) Create environment variables from secrets Allow environment variables to be populated from entire secrets. **Release note**: ```release-note Populate environment variables from a secrets. ```
This commit is contained in:
@@ -35499,6 +35499,10 @@
|
||||
"prefix": {
|
||||
"description": "An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.",
|
||||
"type": "string"
|
||||
},
|
||||
"secretRef": {
|
||||
"description": "The Secret to select from",
|
||||
"$ref": "#/definitions/v1.SecretEnvSource"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -38203,6 +38207,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.SecretEnvSource": {
|
||||
"description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.SecretKeySelector": {
|
||||
"description": "SecretKeySelector selects a key of a Secret.",
|
||||
"required": [
|
||||
|
@@ -2257,6 +2257,10 @@
|
||||
"configMapRef": {
|
||||
"$ref": "v1.ConfigMapEnvSource",
|
||||
"description": "The ConfigMap to select from"
|
||||
},
|
||||
"secretRef": {
|
||||
"$ref": "v1.SecretEnvSource",
|
||||
"description": "The Secret to select from"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2270,6 +2274,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.SecretEnvSource": {
|
||||
"id": "v1.SecretEnvSource",
|
||||
"description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.EnvVar": {
|
||||
"id": "v1.EnvVar",
|
||||
"description": "EnvVar represents an environment variable present in a Container.",
|
||||
|
@@ -2262,6 +2262,10 @@
|
||||
"configMapRef": {
|
||||
"$ref": "v1.ConfigMapEnvSource",
|
||||
"description": "The ConfigMap to select from"
|
||||
},
|
||||
"secretRef": {
|
||||
"$ref": "v1.SecretEnvSource",
|
||||
"description": "The Secret to select from"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2275,6 +2279,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.SecretEnvSource": {
|
||||
"id": "v1.SecretEnvSource",
|
||||
"description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.EnvVar": {
|
||||
"id": "v1.EnvVar",
|
||||
"description": "EnvVar represents an environment variable present in a Container.",
|
||||
|
@@ -8634,6 +8634,10 @@
|
||||
"configMapRef": {
|
||||
"$ref": "v1.ConfigMapEnvSource",
|
||||
"description": "The ConfigMap to select from"
|
||||
},
|
||||
"secretRef": {
|
||||
"$ref": "v1.SecretEnvSource",
|
||||
"description": "The Secret to select from"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -8647,6 +8651,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.SecretEnvSource": {
|
||||
"id": "v1.SecretEnvSource",
|
||||
"description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.EnvVar": {
|
||||
"id": "v1.EnvVar",
|
||||
"description": "EnvVar represents an environment variable present in a Container.",
|
||||
|
@@ -18726,6 +18726,10 @@
|
||||
"configMapRef": {
|
||||
"$ref": "v1.ConfigMapEnvSource",
|
||||
"description": "The ConfigMap to select from"
|
||||
},
|
||||
"secretRef": {
|
||||
"$ref": "v1.SecretEnvSource",
|
||||
"description": "The Secret to select from"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -18739,6 +18743,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.SecretEnvSource": {
|
||||
"id": "v1.SecretEnvSource",
|
||||
"description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.EnvVar": {
|
||||
"id": "v1.EnvVar",
|
||||
"description": "EnvVar represents an environment variable present in a Container.",
|
||||
|
Reference in New Issue
Block a user