diff --git a/stable/CA-Security-Assessment-and-Authorization/policy-compliance-operator-install.yaml b/stable/CA-Security-Assessment-and-Authorization/policy-compliance-operator-install.yaml index 4f61312f..72a11716 100644 --- a/stable/CA-Security-Assessment-and-Authorization/policy-compliance-operator-install.yaml +++ b/stable/CA-Security-Assessment-and-Authorization/policy-compliance-operator-install.yaml @@ -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 }}'