Skip to content

Commit 5083efb

Browse files
authored
[OSD-28074] Change Deployment SSS (#665)
The goal is to remove Subscription, CatalogSource and OperatorGroup from all clusters but MCs, SCs and RHOAM. Signed-off-by: Amador Pahim <[email protected]>
1 parent b26814d commit 5083efb

File tree

1 file changed

+121
-3
lines changed

1 file changed

+121
-3
lines changed

deploy/olm/syncselector-template.yaml

+121-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,124 @@ objects:
4343
annotations:
4444
openshift.io/node-selector: ''
4545
name: openshift-observability-operator
46+
- apiVersion: hive.openshift.io/v1
47+
kind: SelectorSyncSet
48+
metadata:
49+
name: observability-operator-hypershift
50+
spec:
51+
clusterDeploymentSelector:
52+
matchLabels:
53+
api.openshift.com/managed: 'true'
54+
matchExpressions:
55+
- key: ext-hypershift.openshift.io/cluster-type
56+
operator: In
57+
values:
58+
- management-cluster
59+
- service-cluster
60+
resourceApplyMode: Sync
61+
resources:
62+
- apiVersion: operators.coreos.com/v1alpha1
63+
kind: CatalogSource
64+
metadata:
65+
name: observability-operator-catalog
66+
namespace: openshift-observability-operator
67+
spec:
68+
displayName: Red Hat Observability Operator
69+
image: ${REGISTRY_IMG}@${IMAGE_DIGEST}
70+
publisher: OSD Red Hat Addons
71+
sourceType: grpc
72+
grpcPodConfig:
73+
securityContextConfig: restricted
74+
nodeSelector:
75+
node-role.kubernetes.io: infra
76+
tolerations:
77+
- effect: NoSchedule
78+
key: node-role.kubernetes.io/infra
79+
operator: Exists
80+
- apiVersion: operators.coreos.com/v1alpha2
81+
kind: OperatorGroup
82+
metadata:
83+
name: observability-operator-og
84+
namespace: openshift-observability-operator
85+
- apiVersion: operators.coreos.com/v1alpha1
86+
kind: Subscription
87+
metadata:
88+
name: observability-operator
89+
namespace: openshift-observability-operator
90+
spec:
91+
channel: ${CHANNEL}
92+
name: observability-operator
93+
source: observability-operator-catalog
94+
sourceNamespace: openshift-observability-operator
95+
config:
96+
resources:
97+
limits:
98+
cpu: ${RESOURCE_LIMIT_CPU}
99+
memory: ${RESOURCE_LIMIT_MEMORY}
100+
requests:
101+
cpu: ${RESOURCE_REQUEST_CPU}
102+
memory: ${RESOURCE_REQUEST_MEMORY}
103+
- apiVersion: hive.openshift.io/v1
104+
kind: SelectorSyncSet
105+
metadata:
106+
name: observability-operator-rhoam
107+
spec:
108+
clusterDeploymentSelector:
109+
matchLabels:
110+
api.openshift.com/addon-managed-api-service: 'true'
111+
resourceApplyMode: Sync
112+
resources:
113+
- apiVersion: operators.coreos.com/v1alpha1
114+
kind: CatalogSource
115+
metadata:
116+
name: observability-operator-catalog
117+
namespace: openshift-observability-operator
118+
spec:
119+
displayName: Red Hat Observability Operator
120+
image: ${REGISTRY_IMG}@${IMAGE_DIGEST}
121+
publisher: OSD Red Hat Addons
122+
sourceType: grpc
123+
grpcPodConfig:
124+
securityContextConfig: restricted
125+
nodeSelector:
126+
node-role.kubernetes.io: infra
127+
tolerations:
128+
- effect: NoSchedule
129+
key: node-role.kubernetes.io/infra
130+
operator: Exists
131+
- apiVersion: operators.coreos.com/v1alpha2
132+
kind: OperatorGroup
133+
metadata:
134+
name: observability-operator-og
135+
namespace: openshift-observability-operator
136+
- apiVersion: operators.coreos.com/v1alpha1
137+
kind: Subscription
138+
metadata:
139+
name: observability-operator
140+
namespace: openshift-observability-operator
141+
spec:
142+
channel: ${CHANNEL}
143+
name: observability-operator
144+
source: observability-operator-catalog
145+
sourceNamespace: openshift-observability-operator
146+
config:
147+
resources:
148+
limits:
149+
cpu: ${RESOURCE_LIMIT_CPU}
150+
memory: ${RESOURCE_LIMIT_MEMORY}
151+
requests:
152+
cpu: ${RESOURCE_REQUEST_CPU}
153+
memory: ${RESOURCE_REQUEST_MEMORY}
154+
- apiVersion: hive.openshift.io/v1
155+
kind: SelectorSyncSet
156+
metadata:
157+
name: observability-operator-rhoam-int
158+
spec:
159+
clusterDeploymentSelector:
160+
matchLabels:
161+
api.openshift.com/addon-managed-api-service-internal: 'true'
162+
resourceApplyMode: Sync
163+
resources:
46164
- apiVersion: operators.coreos.com/v1alpha1
47165
kind: CatalogSource
48166
metadata:
@@ -58,9 +176,9 @@ objects:
58176
nodeSelector:
59177
node-role.kubernetes.io: infra
60178
tolerations:
61-
- effect: NoSchedule
62-
key: node-role.kubernetes.io/infra
63-
operator: Exists
179+
- effect: NoSchedule
180+
key: node-role.kubernetes.io/infra
181+
operator: Exists
64182
- apiVersion: operators.coreos.com/v1alpha2
65183
kind: OperatorGroup
66184
metadata:

0 commit comments

Comments
 (0)