Skip to content

Commit e077187

Browse files
tjmoore4andrewlecuyer
authored andcommitted
Allow v4.x & v5.x Operator to Run in a Single Namespace
It is not currently possible to run both the v4.x and v5.x PostgreSQL Operator in a single namespace due to a naming conflict with the operators' respectively deployments. This commit updates the PostgreSQL Operator v5.x installers to name the v5.x Operator deployment 'pgo' instead of 'postgres-operator' to allow both versions to run in the same namespace. Also, to facilitate independent installation and removal of the 4.x and 5.x Operators, the default service account name has been updated in 5.x to 'pgo' in place of the current 'postgres-cluster'.
1 parent 81e8ad8 commit e077187

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

helm/install/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v3
2-
name: postgres-operator
2+
name: pgo
33
description: A Helm chart for Kubernetes
44
type: application
55
version: 0.1.0

kustomize/install/bases/manager/manager.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:
5-
name: postgres-operator
5+
name: pgo
66
spec:
77
replicas: 1
88
template:
@@ -17,4 +17,4 @@ spec:
1717
allowPrivilegeEscalation: false
1818
readOnlyRootFilesystem: true
1919
runAsNonRoot: true
20-
serviceAccountName: postgres-operator
20+
serviceAccountName: pgo

kustomize/install/bases/rbac/cluster/role_binding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ roleRef:
99
name: postgres-operator
1010
subjects:
1111
- kind: ServiceAccount
12-
name: postgres-operator
12+
name: pgo

kustomize/install/bases/rbac/cluster/service_account.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:
5-
name: postgres-operator
5+
name: pgo

kustomize/install/bases/rbac/namespace/role_binding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ roleRef:
99
name: postgres-operator
1010
subjects:
1111
- kind: ServiceAccount
12-
name: postgres-operator
12+
name: pgo

kustomize/install/bases/rbac/namespace/service_account.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:
5-
name: postgres-operator
5+
name: pgo

0 commit comments

Comments
 (0)