Skip to content

Commit b9ab566

Browse files
Merge pull request #235 from guillaumerose/master
add current profile annotations to CVO manifests
2 parents 8c6e1f5 + 94a2853 commit b9ab566

11 files changed

+38
-1
lines changed

manifests/02-namespace.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: Namespace
33
metadata:
44
name: openshift-insights
55
annotations:
6+
include.release.openshift.io/self-managed-high-availability: "true"
67
openshift.io/node-selector: ""
78
labels:
89
openshift.io/cluster-monitoring: "true"

manifests/03-clusterrole.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRoleBinding
33
metadata:
44
name: insights-operator-auth
5+
annotations:
6+
include.release.openshift.io/self-managed-high-availability: "true"
57
roleRef:
68
kind: ClusterRole
79
name: system:auth-delegator
@@ -15,6 +17,8 @@ kind: RoleBinding
1517
metadata:
1618
name: insights-operator-auth
1719
namespace: kube-system
20+
annotations:
21+
include.release.openshift.io/self-managed-high-availability: "true"
1822
roleRef:
1923
kind: Role
2024
name: extension-apiserver-authentication-reader
@@ -28,6 +32,8 @@ apiVersion: rbac.authorization.k8s.io/v1
2832
kind: ClusterRole
2933
metadata:
3034
name: insights-operator
35+
annotations:
36+
include.release.openshift.io/self-managed-high-availability: "true"
3137
rules:
3238
# allow the operator to update cluster operator status
3339
- apiGroups:
@@ -68,6 +74,8 @@ apiVersion: rbac.authorization.k8s.io/v1
6874
kind: ClusterRoleBinding
6975
metadata:
7076
name: insights-operator
77+
annotations:
78+
include.release.openshift.io/self-managed-high-availability: "true"
7179
roleRef:
7280
kind: ClusterRole
7381
name: insights-operator
@@ -81,6 +89,8 @@ apiVersion: rbac.authorization.k8s.io/v1
8189
kind: ClusterRole
8290
metadata:
8391
name: insights-operator-gather
92+
annotations:
93+
include.release.openshift.io/self-managed-high-availability: "true"
8494
rules:
8595
- apiGroups:
8696
- ""
@@ -149,6 +159,8 @@ apiVersion: rbac.authorization.k8s.io/v1
149159
kind: ClusterRoleBinding
150160
metadata:
151161
name: insights-operator-gather
162+
annotations:
163+
include.release.openshift.io/self-managed-high-availability: "true"
152164
roleRef:
153165
kind: ClusterRole
154166
name: insights-operator-gather
@@ -162,6 +174,8 @@ apiVersion: rbac.authorization.k8s.io/v1
162174
kind: ClusterRoleBinding
163175
metadata:
164176
name: insights-operator-gather-reader
177+
annotations:
178+
include.release.openshift.io/self-managed-high-availability: "true"
165179
roleRef:
166180
kind: ClusterRole
167181
name: cluster-reader
@@ -176,6 +190,8 @@ kind: Role
176190
metadata:
177191
name: insights-operator
178192
namespace: openshift-config
193+
annotations:
194+
include.release.openshift.io/self-managed-high-availability: "true"
179195
rules:
180196
- apiGroups:
181197
- ""
@@ -192,6 +208,8 @@ kind: RoleBinding
192208
metadata:
193209
name: insights-operator
194210
namespace: openshift-config
211+
annotations:
212+
include.release.openshift.io/self-managed-high-availability: "true"
195213
roleRef:
196214
kind: Role
197215
name: insights-operator
@@ -206,6 +224,8 @@ kind: Role
206224
metadata:
207225
name: insights-operator
208226
namespace: openshift-insights
227+
annotations:
228+
include.release.openshift.io/self-managed-high-availability: "true"
209229
rules:
210230
- apiGroups:
211231
- ""
@@ -227,6 +247,8 @@ kind: RoleBinding
227247
metadata:
228248
name: insights-operator
229249
namespace: openshift-insights
250+
annotations:
251+
include.release.openshift.io/self-managed-high-availability: "true"
230252
roleRef:
231253
kind: Role
232254
name: insights-operator

manifests/03-prometheus_role.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ kind: Role
33
metadata:
44
name: prometheus-k8s
55
namespace: openshift-insights
6+
annotations:
7+
include.release.openshift.io/self-managed-high-availability: "true"
68
rules:
79
- apiGroups:
810
- ""

manifests/03-prometheus_rolebinding.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ kind: RoleBinding
33
metadata:
44
name: prometheus-k8s
55
namespace: openshift-insights
6+
annotations:
7+
include.release.openshift.io/self-managed-high-availability: "true"
68
roleRef:
79
apiGroup: rbac.authorization.k8s.io
810
kind: Role

manifests/04-proxy-cert-configmap.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ metadata:
44
namespace: openshift-insights
55
name: trusted-ca-bundle
66
annotations:
7+
include.release.openshift.io/self-managed-high-availability: "true"
78
release.openshift.io/create-only: "true"
89
labels:
910
config.openshift.io/inject-trusted-cabundle: "true"

manifests/04-service-ca-configmap.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ metadata:
44
namespace: openshift-insights
55
name: service-ca-bundle
66
annotations:
7+
include.release.openshift.io/self-managed-high-availability: "true"
78
release.openshift.io/create-only: "true"
89
service.beta.openshift.io/inject-cabundle: "true"

manifests/04-serviceaccount.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ kind: ServiceAccount
33
metadata:
44
namespace: openshift-insights
55
name: operator
6+
annotations:
7+
include.release.openshift.io/self-managed-high-availability: "true"
68
---
79
apiVersion: v1
810
kind: ServiceAccount
911
metadata:
1012
namespace: openshift-insights
1113
name: gather
14+
annotations:
15+
include.release.openshift.io/self-managed-high-availability: "true"

manifests/05-service.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
annotations:
5-
service.alpha.openshift.io/serving-cert-secret-name: openshift-insights-serving-cert
65
exclude.release.openshift.io/internal-openshift-hosted: "true"
6+
include.release.openshift.io/self-managed-high-availability: "true"
7+
service.alpha.openshift.io/serving-cert-secret-name: openshift-insights-serving-cert
78
labels:
89
app: insights-operator
910
name: metrics

manifests/06-deployment.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ metadata:
66
annotations:
77
config.openshift.io/inject-proxy: insights-operator
88
exclude.release.openshift.io/internal-openshift-hosted: "true"
9+
include.release.openshift.io/self-managed-high-availability: "true"
910
spec:
1011
strategy:
1112
type: Recreate

manifests/07-cluster-operator.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ metadata:
44
name: insights
55
annotations:
66
exclude.release.openshift.io/internal-openshift-hosted: "true"
7+
include.release.openshift.io/self-managed-high-availability: "true"
78
spec: {}
89
status:
910
versions:

manifests/07-servicemonitor.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
namespace: openshift-insights
66
annotations:
77
exclude.release.openshift.io/internal-openshift-hosted: "true"
8+
include.release.openshift.io/self-managed-high-availability: "true"
89
spec:
910
endpoints:
1011
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token

0 commit comments

Comments
 (0)