Skip to content

Commit 240bb71

Browse files
authored
Merge pull request #64284 from slovern/OCPBUGS-10696
OCPBUGS-10696 - SNO clusters upgrade with TALM docs are missing infor…
2 parents 899c0d0 + d351a94 commit 240bb71

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

modules/cnf-topology-aware-lifecycle-manager-policies-concept.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ If a spoke cluster does not report any compliant state to {rh-rhacm}, the manage
1818
1919
The `ClusterGroupUpgrade` CR's `batchTimeoutAction` determines what happens if an upgrade fails for a cluster. You can specify `continue` to skip the failing cluster and continue to upgrade other clusters, or specify `abort` to stop the policy remediation for all clusters. Once the timeout elapses, {cgu-operator} removes all enforce policies to ensure that no further updates are made to clusters.
2020

21+
include::snippets/cnf-example-upgrade-policy.adoc[]
22+
2123
For more information about {rh-rhacm} policies, see link:https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/{rh-rhacm-version}/html-single/governance/index#policy-overview[Policy overview].
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
:_content-type: SNIPPET
2+
.Example upgrade policy
3+
[source,yaml,subs="attributes+"]
4+
----
5+
apiVersion: policy.open-cluster-management.io/v1
6+
kind: Policy
7+
metadata:
8+
name: ocp-4.9.4
9+
namespace: platform-upgrade
10+
spec:
11+
disabled: false
12+
policy-templates:
13+
- objectDefinition:
14+
apiVersion: policy.open-cluster-management.io/v1
15+
kind: ConfigurationPolicy
16+
metadata:
17+
name: upgrade
18+
spec:
19+
namespaceselector:
20+
exclude:
21+
- kube-*
22+
include:
23+
- '*'
24+
object-templates:
25+
- complianceType: musthave
26+
objectDefinition:
27+
apiVersion: config.openshift.io/v1
28+
kind: ClusterVersion
29+
metadata:
30+
name: version
31+
spec:
32+
channel: stable-4.9
33+
desiredUpdate:
34+
version: 4.9.4
35+
upstream: https://api.openshift.com/api/upgrades_info/v1/graph
36+
status:
37+
history:
38+
- state: Completed
39+
version: 4.9.4
40+
remediationAction: inform
41+
severity: low
42+
remediationAction: inform
43+
----

0 commit comments

Comments
 (0)