Skip to content

Commit 8ca3df2

Browse files
authored
Merge pull request #37799 from mburke5678/issue-34037
GH34037: Move configmap topic to nodes
2 parents cb43a44 + bd4887f commit 8ca3df2

14 files changed

+92
-64
lines changed

_topic_map.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,9 +907,6 @@ Topics:
907907
- Name: Syncing LDAP groups
908908
File: ldap-syncing
909909
Distros: openshift-enterprise,openshift-origin,openshift-dedicated
910-
- Name: Creating and using config maps
911-
File: configmaps
912-
Distros: openshift-enterprise,openshift-origin,openshift-dedicated
913910
- Name: Managing cloud provider credentials
914911
Dir: managing_cloud_provider_credentials
915912
Topics:
@@ -1667,6 +1664,8 @@ Topics:
16671664
- Name: Resource quotas across multiple projects
16681665
File: quotas-setting-across-multiple-projects
16691666
Distros: openshift-enterprise,openshift-origin
1667+
- Name: Using config maps with applications
1668+
File: config-maps
16701669
- Name: Monitoring project and application metrics using the Developer perspective
16711670
File: odc-monitoring-project-and-application-metrics-using-developer-perspective
16721671
- Name: Monitoring application health
@@ -1764,6 +1763,8 @@ Topics:
17641763
File: nodes-pods-vertical-autoscaler
17651764
- Name: Providing sensitive data to Pods
17661765
File: nodes-pods-secrets
1766+
- Name: Creating and using config maps
1767+
File: nodes-pods-configmaps
17671768
- Name: Using Device Manager to make devices available to nodes
17681769
File: nodes-pods-plugins
17691770
Distros: openshift-enterprise,openshift-origin

applications/config-maps.adoc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[id="config-maps"]
2+
= Using config maps with applications
3+
include::modules/common-attributes.adoc[]
4+
:context: config-maps
5+
6+
toc::[]
7+
8+
Config maps allow you to decouple configuration artifacts from image content to keep containerized applications portable.
9+
10+
The following sections define config maps and how to create and use them.
11+
12+
For information on creating config maps, see xref:../nodes/pods/nodes-pods-configmaps.adoc[Creating and using config maps].
13+
14+
include::modules/nodes-pods-configmap-overview.adoc[leveloffset=+1]
15+
16+
[id="nodes-pods-config-maps-consuming-configmap-in-pods"]
17+
== Use cases: Consuming config maps in pods
18+
19+
The following sections describe some uses cases when consuming `ConfigMap`
20+
objects in pods.
21+
22+
include::modules/nodes-pods-configmaps-use-case-consuming-in-env-vars.adoc[leveloffset=+2]
23+
24+
include::modules/nodes-pods-configmaps-use-case-setting-command-line-arguments.adoc[leveloffset=+2]
25+
26+
include::modules/nodes-pods-configmaps-use-case-consuming-in-volumes.adoc[leveloffset=+2]

authentication/configmaps.adoc

Lines changed: 0 additions & 32 deletions
This file was deleted.

modules/authentication-configmap-create-from-console.adoc renamed to modules/nodes-pods-configmap-create-from-console.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
//* authentication/configmaps.adoc
44

5-
[id="authentication-configmap-create-from-console_{context}"]
5+
[id="nodes-pods-configmap-create-from-console_{context}"]
66
= Creating a config map in the {product-title} web console
77

88
You can create a config map in the {product-title} web console.

modules/authentication-configmap-create.adoc renamed to modules/nodes-pods-configmap-create.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
//
33
//* authentication/configmaps.adoc
44

5-
[id="authentication-configmap-create_{context}"]
6-
= Creating a config map
5+
[id="nodes-pods-configmap-create_{context}"]
6+
= Creating a config map by using the CLI
77

88
You can use the following command to create a config map from directories, specific files, or literal values.
99

modules/authentication-configmap-creating-from-directories.adoc renamed to modules/nodes-pods-configmap-creating-from-directories.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
//* authentication/configmaps.adoc
44

5-
[id="authentication-configmap-creating-from-directories_{context}"]
5+
[id="nodes-pods-configmap-creating-from-directories_{context}"]
66
= Creating a config map from a directory
77

88
You can create a config map from a directory. This method allows you to use multiple files within a directory to create a config map.
@@ -56,17 +56,17 @@ allow.textmode=true
5656
how.nice.to.look=fairlyNice
5757
----
5858

59-
. Create a `ConfigMap` holding the content of each file in this directory by entering the following command:
59+
. Create a config map holding the content of each file in this directory by entering the following command:
6060
+
6161
[source,terminal]
6262
----
6363
$ oc create configmap game-config \
6464
--from-file=example-files/
6565
----
6666
+
67-
When the `--from-file` option points to a directory, each file directly in that directory is used to populate a key in the `ConfigMap`, where the name of the key is the file name, and the value of the key is the content of the file.
67+
When the `--from-file` option points to a directory, each file directly in that directory is used to populate a key in the config map, where the name of the key is the file name, and the value of the key is the content of the file.
6868
+
69-
For example, the previous command creates the following `ConfigMap`:
69+
For example, the previous command creates the following config map:
7070
+
7171
[source,terminal]
7272
----

modules/authentication-configmap-creating-from-files.adoc renamed to modules/nodes-pods-configmap-creating-from-files.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
//
33
//* authentication/configmaps.adoc
44

5-
[id="authentication-configmap-creating-from-files_{context}"]
6-
= Creating a ConfigMap from a file
5+
[id="nodes-pods-configmap-creating-from-files_{context}"]
6+
= Creating a config map from a file
77

88
You can create a config map from a file.
99

@@ -18,7 +18,7 @@ If you create a config map from a file, you can include files containing non-UTF
1818

1919
You can pass the `--from-file` option multiple times to the CLI. The following example yields equivalent results to the creating from directories example.
2020

21-
. Create a `ConfigMap` specifying a specific file:
21+
. Create a config map by specifying a specific file:
2222
+
2323
[source,terminal]
2424
----
@@ -62,9 +62,9 @@ metadata:
6262
uid: b4952dc3-d670-11e5-8cd0-68f728db1985
6363
----
6464

65-
You can specify the key to set in a `ConfigMap` for content imported from a file. This can be set by passing a `key=value` expression to the `--from-file` option. For example:
65+
You can specify the key to set in a config map for content imported from a file. This can be set by passing a `key=value` expression to the `--from-file` option. For example:
6666

67-
. Create a `ConfigMap` specifying a key-value pair:
67+
. Create a config map by specifying a key-value pair:
6868
+
6969
[source,terminal]
7070
----

modules/authentication-configmap-creating-from-literal-values.adoc renamed to modules/nodes-pods-configmap-creating-from-literal-values.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
//* authentication/configmaps.adoc
44

5-
[id="authentication-configmap-creating-from-literal-values_{context}"]
5+
[id="nodes-pods-configmap-creating-from-literal-values_{context}"]
66
= Creating a config map from literal values
77

88
You can supply literal values for a config map.
@@ -11,7 +11,7 @@ You can supply literal values for a config map.
1111

1212
The `--from-literal` option takes a `key=value` syntax that allows literal values to be supplied directly on the command line.
1313

14-
. Create a `ConfigMap` specifying a literal value:
14+
. Create a config map by specifying a literal value:
1515
+
1616
[source,terminal]
1717
----

modules/authentication-configmap-overview.adoc renamed to modules/nodes-pods-configmap-overview.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
//
33
// * authentication/configmaps.adoc
44

5-
[id="authentication-configmap-overview_{context}"]
6-
= Understanding ConfigMaps
5+
[id="nodes-pods-configmap-overview_{context}"]
6+
= Understanding config maps
77

88
Many applications require configuration using some combination of configuration files, command line arguments, and environment variables. In {product-title}, these configuration artifacts are decoupled from image content to keep containerized applications portable.
99

modules/authentication-configmaps-use-case-consuming-in-env-vars.adoc renamed to modules/nodes-pods-configmaps-use-case-consuming-in-env-vars.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
//* authentication/configmaps.adoc
44

5-
[id="authentication-configmaps-use-case-consuming-in-env-vars_{context}"]
5+
[id="nodes-pods-configmaps-use-case-consuming-in-env-vars_{context}"]
66
= Populating environment variables in containers by using config maps
77

88
Config maps can be used to populate individual environment variables in containers or to populate environment variables in containers from all keys that form valid environment variable names.
@@ -21,8 +21,8 @@ data:
2121
special.how: very <3>
2222
special.type: charm <3>
2323
----
24-
<1> Name of the `ConfigMap`.
25-
<2> The project in which the `ConfigMap` resides. Config maps can only be referenced by pods in the same project.
24+
<1> Name of the config map.
25+
<2> The project in which the config map resides. Config maps can only be referenced by pods in the same project.
2626
<3> Environment variables to inject.
2727

2828
.`ConfigMap` with one environment variable
@@ -36,7 +36,7 @@ metadata:
3636
data:
3737
log_level: INFO <2>
3838
----
39-
<1> Name of the `ConfigMap`.
39+
<1> Name of the config map.
4040
<2> Environment variable to inject.
4141

4242
.Procedure

0 commit comments

Comments
 (0)