-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update kubedb-kubestash-catalog chart
Signed-off-by: hmsayem <[email protected]>
- Loading branch information
Showing
5 changed files
with
200 additions
and
0 deletions.
There are no files selected for viewing
122 changes: 122 additions & 0 deletions
122
charts/kubedb-kubestash-catalog/templates/mariadb/mariadb-addon.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,122 @@ | ||
{{ $featureGates := .Values.featureGates }} | ||
{{- if .Values.global }} | ||
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} | ||
{{- end }} | ||
|
||
{{ if $featureGates.MariaDB }} | ||
apiVersion: addons.kubestash.com/v1alpha1 | ||
kind: Addon | ||
metadata: | ||
name: 'mariadb-addon' | ||
labels: | ||
{{- include "kubedb-kubestash-catalog.labels" . | nindent 4 }} | ||
spec: | ||
backupTasks: | ||
- driver: Restic | ||
executor: Job | ||
function: mariadb-backup | ||
name: logical-backup | ||
parameters: | ||
- name: args | ||
required: false | ||
usage: Arguments to be passed to the dump command. | ||
- name: databases | ||
required: false | ||
usage: List of databases to backup. | ||
- default: "true" | ||
name: enableCache | ||
required: false | ||
usage: Enable or disable caching. Disabling caching may impact backup performance. | ||
- default: /kubestash-tmp | ||
name: scratchDir | ||
required: false | ||
usage: Directory for holding temporary files and restic cache. | ||
singleton: true | ||
volumeMounts: | ||
- mountPath: /kubestash-tmp | ||
name: kubestash-tmp-volume | ||
volumeTemplate: | ||
- name: kubestash-tmp-volume | ||
source: | ||
emptyDir: {} | ||
usage: Holds temporary files and restic cache. | ||
- driver: VolumeSnapshotter | ||
executor: Job | ||
function: mariadb-csi-snapshotter | ||
name: volume-snapshot | ||
parameters: | ||
- name: volumeSnapshotClassName | ||
required: false | ||
usage: The VolumeSnapshotClassName to be used by volumeSnapshot | ||
singleton: true | ||
- driver: Restic | ||
executor: Job | ||
function: kubedbmanifest-backup | ||
name: manifest-backup | ||
parameters: | ||
- default: "true" | ||
name: enableCache | ||
required: false | ||
usage: Enable or disable caching. Disabling caching may impact backup performance. | ||
- default: /kubestash-tmp | ||
name: scratchDir | ||
required: false | ||
usage: Directory for holding temporary files and restic cache. | ||
singleton: true | ||
volumeMounts: | ||
- mountPath: /kubestash-tmp | ||
name: kubestash-tmp-volume | ||
volumeTemplate: | ||
- name: kubestash-tmp-volume | ||
source: | ||
emptyDir: {} | ||
usage: Holds temporary files and restic cache. | ||
restoreTasks: | ||
- driver: Restic | ||
executor: Job | ||
function: mariadb-restore | ||
name: logical-backup-restore | ||
parameters: | ||
- name: args | ||
required: false | ||
usage: Arguments to be passed to the dump command. | ||
- default: "true" | ||
name: enableCache | ||
required: false | ||
usage: Enable or disable caching. Disabling caching may impact backup performance. | ||
- default: /kubestash-tmp | ||
name: scratchDir | ||
required: false | ||
usage: Directory for holding temporary files and restic cache. | ||
singleton: true | ||
volumeMounts: | ||
- mountPath: /kubestash-tmp | ||
name: kubestash-tmp-volume | ||
volumeTemplate: | ||
- name: kubestash-tmp-volume | ||
source: | ||
emptyDir: {} | ||
usage: Holds temporary files and restic cache. | ||
- driver: Restic | ||
executor: Job | ||
function: kubedbmanifest-restore | ||
name: manifest-restore | ||
parameters: | ||
- default: "true" | ||
name: enableCache | ||
required: false | ||
usage: Enable or disable caching. Disabling caching may impact backup performance. | ||
- default: /kubestash-tmp | ||
name: scratchDir | ||
required: false | ||
usage: Directory for holding temporary files and restic cache. | ||
singleton: true | ||
volumeMounts: | ||
- mountPath: /kubestash-tmp | ||
name: kubestash-tmp-volume | ||
volumeTemplate: | ||
- name: kubestash-tmp-volume | ||
source: | ||
emptyDir: {} | ||
usage: Holds temporary files and restic cache. | ||
{{ end }} |
25 changes: 25 additions & 0 deletions
25
charts/kubedb-kubestash-catalog/templates/mariadb/mariadb-backup.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,25 @@ | ||
{{ $featureGates := .Values.featureGates }} | ||
{{- if .Values.global }} | ||
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} | ||
{{- end }} | ||
|
||
{{ if $featureGates.MariaDB }} | ||
apiVersion: addons.kubestash.com/v1alpha1 | ||
kind: Function | ||
metadata: | ||
name: 'mariadb-backup' | ||
labels: | ||
{{- include "kubedb-kubestash-catalog.labels" . | nindent 4 }} | ||
spec: | ||
args: | ||
- backup | ||
- --namespace=${namespace:=default} | ||
- --backupsession=${backupSession:=} | ||
- --enable-cache=${enableCache:=} | ||
- --scratch-dir=${scratchDir:=} | ||
- --wait-timeout=${waitTimeout:={{ .Values.waitTimeout}}} | ||
- --mariadb-args=${args:={{ .Values.mariadb.args }}} | ||
- --db-version=${dbVersion:=} | ||
- --databases=${databases:=} | ||
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-restic-plugin") $) }}:v0.4.0-beta.1_${DB_VERSION}' | ||
{{ end }} |
20 changes: 20 additions & 0 deletions
20
charts/kubedb-kubestash-catalog/templates/mariadb/mariadb-csi-snapshotter.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,20 @@ | ||
{{ $featureGates := .Values.featureGates }} | ||
{{- if .Values.global }} | ||
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} | ||
{{- end }} | ||
|
||
{{ if $featureGates.MariaDB }} | ||
apiVersion: addons.kubestash.com/v1alpha1 | ||
kind: Function | ||
metadata: | ||
name: 'mariadb-csi-snapshotter' | ||
labels: | ||
{{- include "kubedb-kubestash-catalog.labels" . | nindent 4 }} | ||
spec: | ||
args: | ||
- backup | ||
- --namespace=${namespace:=default} | ||
- --volume-snapshot-class-name=${volumeSnapshotClassName:=} | ||
- --backupsession=${backupSession:=} | ||
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-csi-snapshotter-plugin") $) }}:v0.2.0-beta.1' | ||
{{ end }} |
25 changes: 25 additions & 0 deletions
25
charts/kubedb-kubestash-catalog/templates/mariadb/mariadb-restore.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,25 @@ | ||
{{ $featureGates := .Values.featureGates }} | ||
{{- if .Values.global }} | ||
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} | ||
{{- end }} | ||
|
||
{{ if $featureGates.MariaDB }} | ||
apiVersion: addons.kubestash.com/v1alpha1 | ||
kind: Function | ||
metadata: | ||
name: 'mariadb-restore' | ||
labels: | ||
{{- include "kubedb-kubestash-catalog.labels" . | nindent 4 }} | ||
spec: | ||
args: | ||
- restore | ||
- --namespace=${namespace:=default} | ||
- --restoresession=${restoreSession:=} | ||
- --snapshot=${snapshot:=} | ||
- --enable-cache=${enableCache:=} | ||
- --scratch-dir=${scratchDir:=} | ||
- --wait-timeout=${waitTimeout:={{ .Values.waitTimeout}}} | ||
- --mariadb-args=${args:={{ .Values.mariadb.args }}} | ||
- --db-version=${dbVersion:=} | ||
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-restic-plugin") $) }}:v0.4.0-beta.1_${DB_VERSION}' | ||
{{ 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