Skip to content

Commit fd19bca

Browse files
committed
OSDOCS-16550: Updated the comment on images-update-global-pull-secret
1 parent b1ba3d6 commit fd19bca

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

modules/images-update-global-pull-secret.adoc

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,16 @@ endif::image-pull-secrets[]
3434
* You have access to the cluster as a user with the `cluster-admin` role.
3535
3636
.Procedure
37+
3738
. Optional: To append a new pull secret to the existing pull secret, complete the following steps:
3839
+
3940
.. Enter the following command to download the pull secret:
4041
+
4142
[source,terminal]
4243
----
43-
$ oc get secret/pull-secret -n openshift-config \
44-
--template='{{index .data ".dockerconfigjson" | base64decode}}' \
45-
<pull_secret_location> <1>
44+
$ oc get secret/pull-secret -n openshift-config --template='{{index .data ".dockerconfigjson" | base64decode}}' > <pull_secret_location> <1>
4645
----
47-
<1> Include the path to the pull secret file.
46+
<1> `<pull_secret_location>`: Include the path to the pull secret file.
4847
+
4948
.. Enter the following command to add the new pull secret:
5049
+
@@ -54,9 +53,9 @@ $ oc registry login --registry="<registry>" \ <1>
5453
--auth-basic="<username>:<password>" \ <2>
5554
--to=<pull_secret_location> <3>
5655
----
57-
<1> Include the new registry. You can include many repositories within the same registry, for example: `--registry="<registry/my-namespace/my-repository>"`.
58-
<2> Include the credentials of the new registry.
59-
<3> Include the path to the pull secret file.
56+
<1> `<registry>`: Include the new registry. You can include many repositories within the same registry, for example: `--registry="<registry/my-namespace/my-repository>`.
57+
<2> `<username>:<password>`: Include the credentials of the new registry.
58+
<3> `<pull_secret_location>`: Include the path to the pull secret file.
6059
+
6160
You can also perform a manual update to the pull secret file.
6261

@@ -67,7 +66,7 @@ You can also perform a manual update to the pull secret file.
6766
$ oc set data secret/pull-secret -n openshift-config \
6867
--from-file=.dockerconfigjson=<pull_secret_location> <1>
6968
----
70-
<1> Include the path to the new pull secret file.
69+
<1> `<pull_secret_location>`: Include the path to the new pull secret file.
7170
+
7271
This update rolls out to all nodes, which can take some time depending on the size of your cluster.
7372
+

0 commit comments

Comments
 (0)