Skip to content

Commit b57156c

Browse files
Configure Compliance Operator for ROSA HCP
As mentioned in the Compliance Operator documentation, when installed on ROSA hosted control planes, a special node selector must be configured for the operator to run. This update uses conditionals to only make this configuration only on those clusters. Refs: - https://issues.redhat.com/browse/ACM-14161 Signed-off-by: Justin Kulikauskas <[email protected]>
1 parent fe9d9cc commit b57156c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stable/CA-Security-Assessment-and-Authorization/policy-compliance-operator-install.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ spec:
5151
namespace: openshift-compliance
5252
source: redhat-operators
5353
sourceNamespace: openshift-marketplace
54+
# Conditionally configure a nodeSelector for installing on ROSA hosted control planes
55+
config: '{{ if and (eq "ROSA" (fromClusterClaim
56+
"product.open-cluster-management.io")) (eq "true"
57+
(fromClusterClaim "hostedcluster.hypershift.openshift.io"))
58+
}}{"nodeSelector":{"node-role.kubernetes.io/worker":""} }{{ else
59+
}}{{ "{}" | toLiteral }}{{ end }}'

0 commit comments

Comments
 (0)