Skip to content

Commit

Permalink
cleanup postgres operator example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-mccoy committed Feb 8, 2022
1 parent 09cc128 commit 3f8e164
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
6 changes: 6 additions & 0 deletions examples/postgres-operator/manifests/patch-svc-accounts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This will make zarf aware of this SA to do the imagepullsecret patching for it
apiVersion: v1
kind: ServiceAccount
metadata:
name: postgres-pod
namespace: postgres-operator
9 changes: 0 additions & 9 deletions examples/postgres-operator/manifests/postgres-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# repository: ??
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -14,11 +13,3 @@ data:
WALG_DISABLE_S3_SSE: "true"
USE_WALG_RESTORE: "false"
AWS_S3_FORCE_PATH_STYLE: "true"
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: zalando-postgres-operator
namespace: postgres-operator
imagePullSecrets:
- name: private-registry
2 changes: 1 addition & 1 deletion examples/postgres-operator/values/minio-instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tenants:
## size specifies the capacity per volume
size: 1Gi
## storageClass specifies the storage class name to be used for this pool
storageClassName: local-path
storageClassName: "###ZARF_STORAGE_CLASS###"
## Used to specify a toleration for a pod
tolerations: {}
## nodeSelector parameters for MinIO Pods. It specifies a map of key-value pairs. For the pod to be
Expand Down
4 changes: 4 additions & 0 deletions examples/postgres-operator/values/minio-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ operator:
limits:
cpu: 200m
memory: 256Mi
# @todo: need to look at if this is neeeded for zarf with SA injection
# tenants:
# imagePullSecret:
# name: zarf-registry
8 changes: 2 additions & 6 deletions examples/postgres-operator/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@ components:
- name: baseline
required: true

scripts:
retry: true
after:
- "kubectl patch serviceaccount default -p '{\"imagePullSecrets\": [{\"name\": \"private-registry\"}]}' -n postgres-operator"

manifests:
- name: postgres-example-config
files:
- manifests/patch-svc-accounts.yaml
- manifests/minio-instance.yaml
- manifests/pgadmin.yaml
- manifests/postgres-cluster.yaml
- manifests/postgres-operator.yaml
- manifests/postgres-operator-ui.yaml
charts:
Expand Down Expand Up @@ -55,7 +52,6 @@ components:
valuesFiles:
- values/minio-instance.yaml


images:
- registry.opensource.zalan.do/acid/postgres-operator:v1.7.0
- registry.opensource.zalan.do/acid/spilo-13:2.1-p1
Expand Down

0 comments on commit 3f8e164

Please sign in to comment.