Skip to content

Commit e0df92d

Browse files
authored
Enabled registering webhook by default for OpenShift (#289)
1 parent 97c9c44 commit e0df92d

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

mongodb-enterprise-openshift.yaml

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
---
22
# Source: enterprise-operator/templates/operator-roles.yaml
3+
kind: ClusterRole
4+
apiVersion: rbac.authorization.k8s.io/v1
5+
metadata:
6+
name: mongodb-enterprise-operator-mongodb-webhook
7+
rules:
8+
- apiGroups:
9+
- "admissionregistration.k8s.io"
10+
resources:
11+
- validatingwebhookconfigurations
12+
verbs:
13+
- get
14+
- create
15+
- update
16+
- delete
17+
- apiGroups:
18+
- ""
19+
resources:
20+
- services
21+
verbs:
22+
- get
23+
- list
24+
- watch
25+
- create
26+
- update
27+
- delete
28+
---
29+
# Source: enterprise-operator/templates/operator-roles.yaml
30+
kind: ClusterRoleBinding
31+
apiVersion: rbac.authorization.k8s.io/v1
32+
metadata:
33+
name: mongodb-enterprise-operator-mongodb-webhook-binding
34+
roleRef:
35+
apiGroup: rbac.authorization.k8s.io
36+
kind: ClusterRole
37+
name: mongodb-enterprise-operator-mongodb-webhook
38+
subjects:
39+
- kind: ServiceAccount
40+
name: mongodb-enterprise-operator
41+
namespace: mongodb
42+
---
43+
# Source: enterprise-operator/templates/operator-roles.yaml
344
kind: Role
445
apiVersion: rbac.authorization.k8s.io/v1
546
metadata:
@@ -233,8 +274,6 @@ spec:
233274
value: ubi8
234275
- name: PERFORM_FAILOVER
235276
value: 'true'
236-
- name: MDB_WEBHOOK_REGISTER_CONFIGURATION
237-
value: "false"
238277
- name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_25_0
239278
value: "quay.io/mongodb/mongodb-enterprise-database-ubi:1.25.0"
240279
- name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_25_0

0 commit comments

Comments
 (0)