Skip to content

Commit fcb5d8b

Browse files
committed
OCPBUGS-60988: Added update secret step to insights-operator-new-pull-secret
1 parent 419fa45 commit fcb5d8b

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

modules/insights-operator-new-pull-secret-disabled.adoc

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
:_mod-docs-content-type: PROCEDURE
66
[id="insights-operator-new-pull-secret_{context}"]
7-
= Modifying the global cluster pull secret to disable remote health reporting
7+
= Changing the global cluster pull secret to disable remote health reporting
88

9-
You can modify your existing global cluster pull secret to disable remote health reporting. This disables both Telemetry and the Insights Operator.
9+
You can change your existing global cluster pull secret to disable remote health reporting. This configuration disables both Telemetry and the Insights Operator.
1010

1111
.Prerequisites
1212

@@ -19,16 +19,14 @@ endif::openshift-rosa,openshift-dedicated[]
1919

2020
.Procedure
2121

22-
. Download the global cluster pull secret to your local file system.
22+
. Download the global cluster pull secret to your local file system:
2323
+
2424
[source,terminal]
2525
----
2626
$ oc extract secret/pull-secret -n openshift-config --to=.
2727
----
2828

29-
. In a text editor, edit the `.dockerconfigjson` file that was downloaded.
30-
31-
. Remove the `cloud.openshift.com` JSON entry, for example:
29+
. In a text editor, edit the `.dockerconfigjson` file that you downloaded by removing the `cloud.openshift.com` JSON entry:
3230
+
3331
[source,json]
3432
----
@@ -37,4 +35,13 @@ $ oc extract secret/pull-secret -n openshift-config --to=.
3735

3836
. Save the file.
3937

40-
You can now update your cluster to use this modified pull secret.
38+
. Update the secret in your cluster by running the following command:
39+
+
40+
[source,terminal]
41+
----
42+
$ oc set data secret/pull-secret -n openshift-config \
43+
--from-file=.dockerconfigjson=pull-secret
44+
----
45+
+
46+
You might need to wait several minutes for the secret to update in your cluster.
47+

modules/insights-operator-new-pull-secret-enable.adoc

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
:_mod-docs-content-type: PROCEDURE
66
[id="insights-operator-new-pull-secret-enable_{context}"]
7-
= Modifying your global cluster pull secret to enable remote health reporting
7+
= Changing your global cluster pull secret to enable remote health reporting
88

9-
You can modify your existing global cluster pull secret to enable remote health reporting. If you have previously disabled remote health monitoring, you must first download a new pull secret with your `console.openshift.com` access token from {cluster-manager-first}.
9+
You can change your existing global cluster pull secret to enable remote health reporting. If you have disabled remote health monitoring, you must first download a new pull secret with your `console.openshift.com` access token from {cluster-manager-first}.
1010

1111
.Prerequisites
1212

@@ -16,6 +16,7 @@ You can modify your existing global cluster pull secret to enable remote health
1616
.Procedure
1717

1818
. Navigate to link:https://console.redhat.com/openshift/downloads[https://console.redhat.com/openshift/downloads].
19+
1920
. From *Tokens* -> *Pull Secret*, click *Download*.
2021
+
2122
The file `pull-secret.txt` containing your `cloud.openshift.com` access token in JSON format downloads:
@@ -40,26 +41,32 @@ $ oc get secret/pull-secret -n openshift-config \
4041
--template='{{index .data ".dockerconfigjson" | base64decode}}' \
4142
> pull-secret
4243
----
44+
4345
. Make a backup copy of your pull secret.
4446
+
4547
[source,terminal]
4648
----
4749
$ cp pull-secret pull-secret-backup
4850
----
51+
4952
. Open the `pull-secret` file in a text editor.
53+
5054
. Append the `cloud.openshift.com` JSON entry from `pull-secret.txt` into `auths`.
55+
5156
. Save the file.
52-
. Update the secret in your cluster.
57+
58+
. Update the secret in your cluster by running the following command:
5359
+
5460
[source,terminal]
5561
----
5662
$ oc set data secret/pull-secret -n openshift-config \
5763
--from-file=.dockerconfigjson=pull-secret
5864
----
59-
60-
It may take several minutes for the secret to update and your cluster to begin reporting.
65+
+
66+
You might need to wait several minutes for the secret to update and your cluster to begin reporting.
6167
6268
.Verification
6369
6470
. Navigate to the {product-title} Web Console Overview page.
71+
6572
. *Insights* in the *Status* tile reports the number of issues found.

support/remote_health_monitoring/opting-out-of-remote-health-reporting.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ To opt out of remote health reporting, you must:
2424

2525
include::modules/telemetry-consequences-of-disabling-telemetry.adoc[leveloffset=+1]
2626

27+
// Changing the global cluster pull secret to disable remote health reporting
2728
include::modules/insights-operator-new-pull-secret-disabled.adoc[leveloffset=+1]
2829

30+
[role="_additional-resources"]
31+
.Additional resources
32+
* xref:../../support/remote-health-monitoring-with-connected-clusters#images-update-global-pull-secret_opting-out-remote-health-reporting[Changing your global cluster pull secret to enable remote health reporting]
33+
2934
include::modules/insights-operator-register-disconnected-cluster.adoc[leveloffset=+1]
3035

3136
[role="_additional-resources"]

0 commit comments

Comments
 (0)