-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: remarks Signed-off-by: Michal Maléř <[email protected]> Co-authored-by: Michal Maléř <[email protected]>
- Loading branch information
1 parent
e818be0
commit 1132f42
Showing
4 changed files
with
90 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...tion-guide/partials/snip_mounting-a-secret-or-a-configmap-into-a-container.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// Module included in the following procedures: | ||
// | ||
// mounting-a-secret-or-a-configmap-as-an-environment-variable-into-a-container | ||
// mounting-a-secret-or-a-configmap-as-a-file-into-a-container | ||
|
||
|
||
. Create a new {platforms-name} Secret or a ConfigMap in the {platforms-name} {orch-namespace} where a {prod-short} is deployed. The labels of the object that is about to be created must match the set of labels: | ||
+ | ||
* `app.kubernetes.io/part-of: che.eclipse.org` | ||
* `app.kubernetes.io/component: <DEPLOYMENT_NAME>-<OBJECT_KIND>` | ||
+ | ||
* The `<DEPLOYMENT_NAME>` corresponds to the one following deployments: | ||
|
||
** `postgres` | ||
** `keycloak` | ||
** `devfile-registry` | ||
** `plugin-registry` | ||
** `{prod-deployment}` | ||
+ | ||
and | ||
+ | ||
* `<OBJECT_KIND>` is either: | ||
+ | ||
** `secret` | ||
+ | ||
or | ||
+ | ||
** `configmap` | ||
|
||
// The following content is downstream friendly | ||
|
||
.Example: | ||
==== | ||
[source,yaml,subs="+quotes,attributes"] | ||
---- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: custom-settings | ||
labels: | ||
app.kubernetes.io/part-of: che.eclipse.org | ||
app.kubernetes.io/component: {prod-deployment}-secret | ||
... | ||
---- | ||
or | ||
[source,yaml,subs="+quotes,attributes"] | ||
---- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: custom-settings | ||
labels: | ||
app.kubernetes.io/part-of: che.eclipse.org | ||
app.kubernetes.io/component: {prod-deployment}-configmap | ||
... | ||
---- | ||
==== |