diff --git a/hack/00-osd-managed-cluster-config-integration.yaml.tmpl b/hack/00-osd-managed-cluster-config-integration.yaml.tmpl index 8ba83032b2..c471dc1c8e 100644 --- a/hack/00-osd-managed-cluster-config-integration.yaml.tmpl +++ b/hack/00-osd-managed-cluster-config-integration.yaml.tmpl @@ -2723,6 +2723,33 @@ objects: source: redhat-operators sourceNamespace: openshift-marketplace name: compliance-operator +- apiVersion: hive.openshift.io/v1 + kind: SelectorSyncSet + metadata: + labels: + managed.openshift.io/gitHash: ${IMAGE_TAG} + managed.openshift.io/gitRepoName: ${REPO_NAME} + managed.openshift.io/osd: 'true' + name: configure-alertmanager-operator + spec: + clusterDeploymentSelector: + matchLabels: + api.openshift.com/managed: 'true' + resourceApplyMode: Sync + resources: + - apiVersion: rbac.authorization.k8s.io/v1 + kind: ClusterRoleBinding + metadata: + name: configure-alertmanager-operator.prom + namespace: openshift-monitoring + roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cluster-monitoring-view + subjects: + - kind: ServiceAccount + name: configure-alertmanager-operator + namespace: openshift-monitoring - apiVersion: hive.openshift.io/v1 kind: SelectorSyncSet metadata: diff --git a/hack/00-osd-managed-cluster-config-production.yaml.tmpl b/hack/00-osd-managed-cluster-config-production.yaml.tmpl index 08804a3e89..2f04087502 100644 --- a/hack/00-osd-managed-cluster-config-production.yaml.tmpl +++ b/hack/00-osd-managed-cluster-config-production.yaml.tmpl @@ -2723,6 +2723,33 @@ objects: source: redhat-operators sourceNamespace: openshift-marketplace name: compliance-operator +- apiVersion: hive.openshift.io/v1 + kind: SelectorSyncSet + metadata: + labels: + managed.openshift.io/gitHash: ${IMAGE_TAG} + managed.openshift.io/gitRepoName: ${REPO_NAME} + managed.openshift.io/osd: 'true' + name: configure-alertmanager-operator + spec: + clusterDeploymentSelector: + matchLabels: + api.openshift.com/managed: 'true' + resourceApplyMode: Sync + resources: + - apiVersion: rbac.authorization.k8s.io/v1 + kind: ClusterRoleBinding + metadata: + name: configure-alertmanager-operator.prom + namespace: openshift-monitoring + roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cluster-monitoring-view + subjects: + - kind: ServiceAccount + name: configure-alertmanager-operator + namespace: openshift-monitoring - apiVersion: hive.openshift.io/v1 kind: SelectorSyncSet metadata: diff --git a/hack/00-osd-managed-cluster-config-stage.yaml.tmpl b/hack/00-osd-managed-cluster-config-stage.yaml.tmpl index a637baa22c..9cbc9d399f 100644 --- a/hack/00-osd-managed-cluster-config-stage.yaml.tmpl +++ b/hack/00-osd-managed-cluster-config-stage.yaml.tmpl @@ -2723,6 +2723,33 @@ objects: source: redhat-operators sourceNamespace: openshift-marketplace name: compliance-operator +- apiVersion: hive.openshift.io/v1 + kind: SelectorSyncSet + metadata: + labels: + managed.openshift.io/gitHash: ${IMAGE_TAG} + managed.openshift.io/gitRepoName: ${REPO_NAME} + managed.openshift.io/osd: 'true' + name: configure-alertmanager-operator + spec: + clusterDeploymentSelector: + matchLabels: + api.openshift.com/managed: 'true' + resourceApplyMode: Sync + resources: + - apiVersion: rbac.authorization.k8s.io/v1 + kind: ClusterRoleBinding + metadata: + name: configure-alertmanager-operator.prom + namespace: openshift-monitoring + roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cluster-monitoring-view + subjects: + - kind: ServiceAccount + name: configure-alertmanager-operator + namespace: openshift-monitoring - apiVersion: hive.openshift.io/v1 kind: SelectorSyncSet metadata: