Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
2d4b57d
added v5 pgadmin4 to related images for helm and kustomize installers…
ValClarkson Nov 2, 2021
d86ec89
Add namespace to operator through DownwardAPI
benjaminjb Nov 22, 2021
e6d1bb1
Add updated RBAC for PodDisruptionBudgets
jmckulk Dec 1, 2021
b611742
CRD Sync
jmckulk Dec 9, 2021
13f5c83
CRD Label Update
andrewlecuyer Dec 9, 2021
2c2cec2
Updates to Helm installer chart
Dec 10, 2021
850e369
Add pgupgrade to related images
cbandy Dec 9, 2021
3d98d5d
Make postgresVersion Helm variable required
Dec 10, 2021
df5e43a
Remove TODOs From CRDs
andrewlecuyer Dec 16, 2021
1906e30
Make the number of controller workers configurable
cbandy Feb 9, 2022
2fc7306
update examples from 5.0.4 to 5.0.5, updated kustomize examples
ValClarkson Feb 15, 2022
19b4b6b
Make the number of controller workers configurable
cbandy Feb 9, 2022
175c635
bump helm charge version for operator 5.0.5 release
ValClarkson Mar 3, 2022
f095052
Merge pull request #86 from ValClarkson/workerbackpatch
ValClarkson Mar 3, 2022
42487eb
Merge pull request #87 from ValClarkson/versionbump
ValClarkson Mar 3, 2022
d3f2449
Update CRD's to the Latest Revision
andrewlecuyer Feb 18, 2022
2765f06
updated images to correct pgversions and updated release items
ValClarkson Mar 28, 2022
de6ed6b
Merge pull request #102 from ValClarkson/vbump510
ValClarkson Mar 29, 2022
713a0f1
Update kustomize/install to bring in line with postgres-operator repo…
benjaminjb Mar 30, 2022
9c832b0
update crd to latest release and remove pgupgrade from
ValClarkson Mar 30, 2022
127368f
Merge pull request #103 from ValClarkson/crdupdate
ValClarkson Mar 30, 2022
df5d075
Change position of controller image value
cbandy Apr 4, 2022
629b3b2
Remove the status field from CRD YAML
cbandy Apr 4, 2022
74df255
Add upgrade controller to Helm install chart
cbandy Apr 7, 2022
f4a8d50
Add upgrade controller to Kustomize install
cbandy Apr 11, 2022
6e91c1d
Merge branch 'devel' into main
cbandy Apr 13, 2022
f8a0eb4
Enable seccomp on containers (#122)
benjaminjb May 10, 2022
1dbc51b
update to v5.1.1
ValClarkson May 16, 2022
538c499
Align Related Images in manager.yaml With OLM
andrewlecuyer May 18, 2022
12085b7
Revert "Enable seccomp on containers (#122)" (#126)
benjaminjb May 18, 2022
78c2d64
Helm Chart fix wrong dataSource key in postgres template
jfhenriques Mar 10, 2022
a53092a
updated for v5.1.2
ValClarkson Jul 12, 2022
c35b44b
Merge pull request #139 from ValClarkson/versionupdate
ValClarkson Jul 15, 2022
08365a9
Bump 5.1.2 to 5.1.3
jmckulk Aug 1, 2022
4b0501c
Merge pull request #147 from jmckulk/version_bump_5.1.3
jmckulk Aug 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add upgrade controller to Kustomize install
Issue: [sc-14201]
  • Loading branch information
cbandy committed Apr 12, 2022
commit f4a8d5002c16f2c51f820694a676032d84a0f096

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions kustomize/install/crd/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
resources:
- bases/postgres-operator.crunchydata.com_postgresclusters.yaml
- bases/postgres-operator.crunchydata.com_pgupgrades.yaml
14 changes: 7 additions & 7 deletions kustomize/install/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace: postgres-operator

commonLabels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
app.kubernetes.io/name: pgo
app.kubernetes.io/version: 5.1.0

Expand All @@ -14,11 +13,12 @@ images:
- name: postgres-operator
newName: registry.developers.crunchydata.com/crunchydata/postgres-operator
newTag: ubi8-5.1.0-0
- name: postgres-operator-upgrade
newName: registry.developers.crunchydata.com/crunchydata/postgres-operator-upgrade
newTag: ubi8-5.1.0-0

patchesJson6902:
- target:
group: apps
version: v1
kind: Deployment
name: pgo
path: manager-selector.yaml
- target: { group: apps, version: v1, kind: Deployment, name: pgo }
path: selectors.yaml
- target: { group: apps, version: v1, kind: Deployment, name: pgo-upgrade }
path: selectors.yaml
10 changes: 0 additions & 10 deletions kustomize/install/default/manager-selector.yaml

This file was deleted.

8 changes: 8 additions & 0 deletions kustomize/install/default/selectors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# We add the app version as a "commonLabel" and change it with each release.
# Remove it from selectors until we use "labels" of Kustomize v4.1.
# See: https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/commonlabels/
# See: https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv4.1.0
- op: remove
path: /spec/selector/matchLabels/app.kubernetes.io~1name
- op: remove
path: /spec/selector/matchLabels/app.kubernetes.io~1version
1 change: 1 addition & 0 deletions kustomize/install/manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
resources:
- manager.yaml
- manager-upgrade.yaml
35 changes: 35 additions & 0 deletions kustomize/install/manager/manager-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pgo-upgrade
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator-upgrade
spec:
replicas: 1
strategy: { type: Recreate }
selector:
matchLabels:
postgres-operator.crunchydata.com/control-plane: postgres-operator-upgrade
template:
metadata:
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator-upgrade
spec:
containers:
- name: operator
image: postgres-operator-upgrade
env:
- name: PGO_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CRUNCHY_DEBUG
value: "true"
- name: RELATED_IMAGE_PGUPGRADE
value: "registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi8-5.1.0-0"
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
serviceAccountName: postgres-operator-upgrade
8 changes: 8 additions & 0 deletions kustomize/install/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: pgo
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
spec:
replicas: 1
strategy: { type: Recreate }
selector:
matchLabels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
template:
metadata:
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
spec:
containers:
- name: operator
Expand Down
3 changes: 3 additions & 0 deletions kustomize/install/rbac/cluster/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ resources:
- service_account.yaml
- role.yaml
- role_binding.yaml
- service_account-upgrade.yaml
- role-upgrade.yaml
- role_binding-upgrade.yaml
71 changes: 71 additions & 0 deletions kustomize/install/rbac/cluster/role-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: postgres-operator-upgrade
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator-upgrade
rules:
- apiGroups:
- ""
resources:
- endpoints
verbs:
- delete
- get
- list
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- list
- watch
- apiGroups:
- batch
resources:
- jobs
verbs:
- create
- delete
- list
- patch
- watch
- apiGroups:
- postgres-operator.crunchydata.com
resources:
- pgupgrades
verbs:
- get
- list
- watch
- apiGroups:
- postgres-operator.crunchydata.com
resources:
- pgupgrades/finalizers
verbs:
- patch
- update
- apiGroups:
- postgres-operator.crunchydata.com
resources:
- pgupgrades/status
verbs:
- get
- patch
- apiGroups:
- postgres-operator.crunchydata.com
resources:
- postgresclusters
verbs:
- get
- list
- watch
- apiGroups:
- postgres-operator.crunchydata.com
resources:
- postgresclusters/status
verbs:
- patch
2 changes: 2 additions & 0 deletions kustomize/install/rbac/cluster/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: postgres-operator
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
rules:
- apiGroups:
- ''
Expand Down
14 changes: 14 additions & 0 deletions kustomize/install/rbac/cluster/role_binding-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: postgres-operator-upgrade
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator-upgrade
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: postgres-operator-upgrade
subjects:
- kind: ServiceAccount
name: postgres-operator-upgrade
2 changes: 2 additions & 0 deletions kustomize/install/rbac/cluster/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: postgres-operator
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
7 changes: 7 additions & 0 deletions kustomize/install/rbac/cluster/service_account-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: postgres-operator-upgrade
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator-upgrade
2 changes: 2 additions & 0 deletions kustomize/install/rbac/cluster/service_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: pgo
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
3 changes: 3 additions & 0 deletions kustomize/install/rbac/namespace/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ resources:
- service_account.yaml
- role.yaml
- role_binding.yaml
- service_account-upgrade.yaml
- role-upgrade.yaml
- role_binding-upgrade.yaml
71 changes: 71 additions & 0 deletions kustomize/install/rbac/namespace/role-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
name: postgres-operator-upgrade
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator-upgrade
rules:
- apiGroups:
- ""
resources:
- endpoints
verbs:
- delete
- get
- list
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- list
- watch
- apiGroups:
- batch
resources:
- jobs
verbs:
- create
- delete
- list
- patch
- watch
- apiGroups:
- postgres-operator.crunchydata.com
resources:
- pgupgrades
verbs:
- get
- list
- watch
- apiGroups:
- postgres-operator.crunchydata.com
resources:
- pgupgrades/finalizers
verbs:
- patch
- update
- apiGroups:
- postgres-operator.crunchydata.com
resources:
- pgupgrades/status
verbs:
- get
- patch
- apiGroups:
- postgres-operator.crunchydata.com
resources:
- postgresclusters
verbs:
- get
- list
- watch
- apiGroups:
- postgres-operator.crunchydata.com
resources:
- postgresclusters/status
verbs:
- patch
2 changes: 2 additions & 0 deletions kustomize/install/rbac/namespace/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: postgres-operator
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
rules:
- apiGroups:
- ''
Expand Down
14 changes: 14 additions & 0 deletions kustomize/install/rbac/namespace/role_binding-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: postgres-operator-upgrade
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator-upgrade
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: postgres-operator-upgrade
subjects:
- kind: ServiceAccount
name: postgres-operator-upgrade
2 changes: 2 additions & 0 deletions kustomize/install/rbac/namespace/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: postgres-operator
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down
7 changes: 7 additions & 0 deletions kustomize/install/rbac/namespace/service_account-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: postgres-operator-upgrade
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator-upgrade
2 changes: 2 additions & 0 deletions kustomize/install/rbac/namespace/service_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: pgo
labels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
21 changes: 11 additions & 10 deletions kustomize/install/singlenamespace/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace: postgres-operator

commonLabels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
app.kubernetes.io/name: pgo
app.kubernetes.io/version: 5.1.0

Expand All @@ -10,18 +9,20 @@ bases:
- ../rbac/namespace
- ../manager

patches:
- manager-target.yaml

images:
- name: postgres-operator
newName: registry.developers.crunchydata.com/crunchydata/postgres-operator
newTag: ubi8-5.1.0-0
- name: postgres-operator-upgrade
newName: registry.developers.crunchydata.com/crunchydata/postgres-operator-upgrade
newTag: ubi8-5.1.0-0

patchesJson6902:
- target:
group: apps
version: v1
kind: Deployment
name: pgo
path: manager-selector.yaml
- target: { group: apps, version: v1, kind: Deployment, name: pgo }
path: selectors.yaml
- target: { group: apps, version: v1, kind: Deployment, name: pgo-upgrade }
path: selectors.yaml

patchesStrategicMerge:
- manager-target.yaml
- manager-target-upgrade.yaml
Loading