You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ztp-removing-content-from-managed-clusters.adoc
+11-17
Original file line number
Diff line number
Diff line change
@@ -43,26 +43,20 @@ metadata:
43
43
spec:
44
44
configDaemonNodeSelector:
45
45
"node-role.kubernetes.io/$mcp": ""
46
-
disableDrain: false <1>
46
+
disableDrain: true <1>
47
47
enableInjector: true
48
48
enableOperatorWebhook: true
49
49
----
50
-
<1> Remove the `disableDrain: false` line.
50
+
<1> Remove the `disableDrain: true` line.
51
51
52
-
. Change the `complianceType` of the affected policies to `mustonlyhave` in the `common-ranGen.yaml` file.
52
+
. Change the `complianceType` of the affected policies to `mustonlyhave` in the `group-du-sno-ranGen.yaml` file.
53
53
+
54
54
.Example YAML
55
55
[source,yaml]
56
56
----
57
-
- fileName: SriovSubscriptionNS.yaml
58
-
policyName: "subscriptions-policy"
59
-
complianceType: mustonlyhave
60
-
- fileName: SriovSubscriptionOperGroup.yaml
61
-
policyName: "subscriptions-policy"
62
-
complianceType: mustonlyhave
63
-
- fileName: SriovSubscription.yaml
64
-
policyName: "subscriptions-policy"
65
-
complianceType: mustonlyhave
57
+
- fileName: SriovOperatorConfig.yaml
58
+
policyName: "config-policy"
59
+
complianceType: mustonlyhave
66
60
----
67
61
68
62
. Create a `ClusterGroupUpdates` CR and specify the clusters you want to deploy the changes to:
@@ -77,7 +71,7 @@ metadata:
77
71
namespace: default
78
72
spec:
79
73
managedPolicies:
80
-
- policy1-common-example-sriov-sub-policy
74
+
- ztp-group.group-du-sno-config-policy
81
75
enable: false
82
76
clusters:
83
77
- spoke1
@@ -95,7 +89,7 @@ spec:
95
89
$ oc create -f cgu-remove.yaml
96
90
----
97
91
98
-
. Change the value of the `spec.enable` field to `true` by running the following command:
92
+
. When you are ready to apply the changes, for example, during an appropriate maintenance window, change the value of the `spec.enable` field to `true` by running the following command:
99
93
+
100
94
[source,terminal]
101
95
----
@@ -113,9 +107,9 @@ $ oc get <changed_cr>
113
107
.Example output
114
108
[source,terminal]
115
109
----
116
-
NAMESPACE NAME REMEDIATION ACTION COMPLIANCE STATE AGE
0 commit comments