Skip to content

Commit 4356f2e

Browse files
committed
OCPBUGS-44349: config data key cannot be user defined
1 parent 1be5931 commit 4356f2e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

modules/ibi-extra-manifests-configmap.adoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ After you create the `ConfigMap` resource, reference it in the `spec.caBundleRef
104104

105105
.Procedure
106106

107-
. Create a CA bundle file such as the following file:
107+
. Create a CA bundle file called `tls-ca-bundle.pem`:
108108
+
109-
.Example `example-ca.crt`
109+
.Example `tls-ca-bundle.pem` file
110110
[source,text]
111111
----
112112
-----BEGIN CERTIFICATE-----
@@ -117,13 +117,16 @@ cA8SMRwpUbz3LXY=
117117
-----END CERTIFICATE-----
118118
----
119119

120-
. Create the ConfigMap object by running the following command:
120+
. Create the `ConfigMap` object by running the following command:
121121
+
122122
[source,terminal]
123123
----
124-
$ oc create configmap custom-ca --from-file=example-ca.crt -n ibi-ns <1>
124+
$ oc create configmap custom-ca --from-file=tls-ca-bundle.pem -n ibi-ns
125125
----
126-
<1> Specify the namespace that has the `ImageClusterInstall` resource.
126+
+
127+
* `custom-ca` specifies the name for the `ConfigMap` resource.
128+
* `tls-ca-bundle.pem` defines the key for the `data` entry in the `ConfigMap` resource. You must include a `data` entry with the `tls-ca-bundle.pem` key.
129+
* `ibi-ns` specifies the namespace that has the `ImageClusterInstall` resource.
127130
+
128131
.Example output
129132
[source,terminal]
@@ -141,4 +144,3 @@ configmap/custom-ca created
141144
name: custom-ca
142145
#...
143146
----
144-

0 commit comments

Comments
 (0)