-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Provide configuration backup with Persistent Volume (#128)
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
helm-charts/azure-api-management-gateway/templates/persistent-volume-claim.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{- if and .Values.gateway.configuration.backup.enabled .Values.gateway.configuration.backup.persistentVolumeClaim.create -}} | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ include "azure-api-management-gateway.fullname" . }} | ||
labels: | ||
{{- include "azure-api-management-gateway.labels" . | nindent 4 }} | ||
spec: | ||
{{- if ne .Values.gateway.configuration.backup.persistentVolumeClaim.storageClassName nil }} | ||
storageClassName: {{ .Values.gateway.configuration.backup.persistentVolumeClaim.storageClassName | quote }} | ||
{{- end }} | ||
accessModes: | ||
- {{ .Values.gateway.configuration.backup.persistentVolumeClaim.accessMode }} | ||
resources: | ||
requests: | ||
storage: {{ .Values.gateway.configuration.backup.persistentVolumeClaim.size }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters