Skip to content

Commit

Permalink
worked on feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunsinghot committed Dec 13, 2024
1 parent 0328412 commit 533d824
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
12 changes: 9 additions & 3 deletions charts/psmdb-operator-db/templates/backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
apiVersion: psmdb.percona.com/v1
kind: PerconaServerMongoDBBackup
metadata:
finalizers:
- delete-backup
name: {{ .Values.backup.name }}
{{- if .Values.backup.annotations }}
annotations:
{{ .Values.backup.annotations | toYaml | indent 4 }}
{{- end }}
{{- if .Values.backup.labels }}
labels:
{{ .Values.backup.labels | toYaml | indent 4 }}
{{- end }}
spec:
clusterName: {{ .Values.backup.clusterName }}
storageName: {{ .Values.backup.storageName }}
type: {{ .Values.backup.type }}
{{- end }}
{{- end }}
8 changes: 8 additions & 0 deletions charts/psmdb-operator-db/templates/restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ apiVersion: psmdb.percona.com/v1
kind: PerconaServerMongoDBRestore
metadata:
name: {{ .Values.restore.name }}
{{- if .Values.restore.annotations }}
annotations:
{{ .Values.restore.annotations | toYaml | indent 4 }}
{{- end }}
{{- if .Values.restore.labels }}
labels:
{{ .Values.restore.labels | toYaml | indent 4 }}
{{- end }}
spec:
clusterName: {{ .Values.restore.clusterName }}
backupName: {{ .Values.restore.backupName }}
Expand Down
14 changes: 12 additions & 2 deletions charts/psmdb-operator-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -782,14 +782,24 @@ psmdb-db:
# # PMM_SERVER_PASSWORD: admin

backup:
enabled: false
enabled: true
annotations:
description: "test"
name: backup
labels:
app: mongo-backup
environment: testing
clusterName: mdb-db-psmdb-db
storageName: azure-blob
type: logical

restore:
enabled: false
enabled: true
annotations:
description: "test"
name: restore1
labels:
app: mongo-restore
environment: testing
clusterName: mdb-db-psmdb-db
backupName: backup

0 comments on commit 533d824

Please sign in to comment.