Skip to content

Commit

Permalink
Configure Compliance Operator for ROSA HCP
Browse files Browse the repository at this point in the history
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]>
(cherry picked from commit b57156c)
  • Loading branch information
JustinKuli authored and magic-mirror-bot[bot] committed Dec 11, 2024
1 parent b0637e6 commit 6002045
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ spec:
namespace: openshift-compliance
source: redhat-operators
sourceNamespace: openshift-marketplace
# Conditionally configure a nodeSelector for installing on ROSA hosted control planes
config: '{{ if and (eq "ROSA" (fromClusterClaim
"product.open-cluster-management.io")) (eq "true"
(fromClusterClaim "hostedcluster.hypershift.openshift.io"))
}}{"nodeSelector":{"node-role.kubernetes.io/worker":""} }{{ else
}}{{ "{}" | toLiteral }}{{ end }}'

0 comments on commit 6002045

Please sign in to comment.