Skip to content

Commit

Permalink
Restore removed Crunchy templates
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Feb 24, 2025
1 parent 69e5a02 commit ea001e7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions charts/crunchy/templates/knp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ .Release.Name }}
labels: {{- include "crunchy-postgres.selectorLabels" . | nindent 4 }}
spec:
podSelector:
matchLabels:
postgres-operator.crunchydata.com/cluster: {{ template "crunchy-postgres.fullname" . }}
ingress:
- from:
- podSelector:
matchLabels:
postgres-operator.crunchydata.com/cluster: {{ template "crunchy-postgres.fullname" . }}
policyTypes:
- Ingress
11 changes: 11 additions & 0 deletions charts/crunchy/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if and .Values.crunchy.enabled .Values.crunchy.pgBackRest.s3.enabled}}
---
apiVersion: v1
kind: Secret
metadata:
name: {{.Release.Name}}-s3-secret
type: Opaque
stringData:
s3.conf: |-
{{ include "crunchy.s3" . | nindent 8}}
{{- end }}

0 comments on commit ea001e7

Please sign in to comment.