-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add catalogs for manifest-backup addon (#248)
* Add catalogs for manifest-backup addon Signed-off-by: Emruz Hossain <[email protected]> * Generate charts Signed-off-by: Emruz Hossain <[email protected]> * Set default value for include-dependants flag Signed-off-by: Emruz Hossain <[email protected]> * Rename manifest addon to kubedump Signed-off-by: Emruz Hossain <[email protected]> * Fix command for kbuedump addon Signed-off-by: Emruz Hossain <[email protected]>
- Loading branch information
Emruz Hossain
authored
Apr 28, 2022
1 parent
e07115b
commit 55b9a5d
Showing
12 changed files
with
232 additions
and
5 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -84,6 +84,12 @@ | |
"5.0.13-v4", | ||
"6.2.5-v4" | ||
] | ||
}, | ||
{ | ||
"name": "kubedump", | ||
"versions": [ | ||
"0.1.0" | ||
] | ||
} | ||
] | ||
} | ||
} |
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,40 @@ | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Function | ||
metadata: | ||
name: kubedump-backup-0.1.0 | ||
spec: | ||
args: | ||
- backup | ||
- --provider=${REPOSITORY_PROVIDER:=} | ||
- --bucket=${REPOSITORY_BUCKET:=} | ||
- --endpoint=${REPOSITORY_ENDPOINT:=} | ||
- --region=${REPOSITORY_REGION:=} | ||
- --path=${REPOSITORY_PREFIX:=} | ||
- --storage-secret-name=${REPOSITORY_SECRET_NAME:=} | ||
- --storage-secret-namespace=${REPOSITORY_SECRET_NAMESPACE:=} | ||
- --scratch-dir=/tmp | ||
- --enable-cache=${ENABLE_CACHE:=true} | ||
- --max-connections=${MAX_CONNECTIONS:=0} | ||
- --hostname=${HOSTNAME:=} | ||
- --namespace=${NAMESPACE:=default} | ||
- --backupsession=${BACKUP_SESSION:=} | ||
- --invoker-kind=${INVOKER_KIND:=} | ||
- --invoker-name=${INVOKER_NAME:=} | ||
- --target-kind=${TARGET_KIND:=} | ||
- --target-name=${TARGET_NAME:=} | ||
- --target-namespace=${TARGET_NAMESPACE:=} | ||
- --sanitize=${sanitize:=true} | ||
- --label-selector=${labelSelector:=} | ||
- --include-dependants=${includeDependants:=false} | ||
- --retention-keep-last=${RETENTION_KEEP_LAST:=0} | ||
- --retention-keep-hourly=${RETENTION_KEEP_HOURLY:=0} | ||
- --retention-keep-daily=${RETENTION_KEEP_DAILY:=0} | ||
- --retention-keep-weekly=${RETENTION_KEEP_WEEKLY:=0} | ||
- --retention-keep-monthly=${RETENTION_KEEP_MONTHLY:=0} | ||
- --retention-keep-yearly=${RETENTION_KEEP_YEARLY:=0} | ||
- --retention-keep-tags=${RETENTION_KEEP_TAGS:=} | ||
- --retention-prune=${RETENTION_PRUNE:=false} | ||
- --retention-dry-run=${RETENTION_DRY_RUN:=false} | ||
- --output-dir=${outputDir:=} | ||
- --license-apiservice=${LICENSE_APISERVICE:=} | ||
image: stashed/stash-kubedump:0.1.0 |
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,14 @@ | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: kubedump-backup-0.1.0 | ||
spec: | ||
steps: | ||
- name: kubedump-backup-0.1.0 | ||
params: | ||
- name: outputDir | ||
value: /tmp/output | ||
- name: update-status | ||
params: | ||
- name: outputDir | ||
value: /tmp/output |
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
44 changes: 44 additions & 0 deletions
44
charts/stash-catalog/templates/kubedump/0.1.0/kubedump-backup-function.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,44 @@ | ||
{{ if .Values.kubedump.enabled }} | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Function | ||
metadata: | ||
name: 'kubedump-backup-0.1.0' | ||
labels: | ||
{{- include "stash-catalog.labels" . | nindent 4 }} | ||
spec: | ||
args: | ||
- backup | ||
- --provider=${REPOSITORY_PROVIDER:=} | ||
- --bucket=${REPOSITORY_BUCKET:=} | ||
- --endpoint=${REPOSITORY_ENDPOINT:=} | ||
- --region=${REPOSITORY_REGION:=} | ||
- --path=${REPOSITORY_PREFIX:=} | ||
- --storage-secret-name=${REPOSITORY_SECRET_NAME:=} | ||
- --storage-secret-namespace=${REPOSITORY_SECRET_NAMESPACE:=} | ||
- --scratch-dir=/tmp | ||
- --enable-cache=${ENABLE_CACHE:=true} | ||
- --max-connections=${MAX_CONNECTIONS:=0} | ||
- --hostname=${HOSTNAME:=} | ||
- --namespace=${NAMESPACE:=default} | ||
- --backupsession=${BACKUP_SESSION:=} | ||
- --invoker-kind=${INVOKER_KIND:=} | ||
- --invoker-name=${INVOKER_NAME:=} | ||
- --target-kind=${TARGET_KIND:=} | ||
- --target-name=${TARGET_NAME:=} | ||
- --target-namespace=${TARGET_NAMESPACE:=} | ||
- --sanitize=${sanitize:=true} | ||
- --label-selector=${labelSelector:=} | ||
- --include-dependants=${includeDependants:=false} | ||
- --retention-keep-last=${RETENTION_KEEP_LAST:=0} | ||
- --retention-keep-hourly=${RETENTION_KEEP_HOURLY:=0} | ||
- --retention-keep-daily=${RETENTION_KEEP_DAILY:=0} | ||
- --retention-keep-weekly=${RETENTION_KEEP_WEEKLY:=0} | ||
- --retention-keep-monthly=${RETENTION_KEEP_MONTHLY:=0} | ||
- --retention-keep-yearly=${RETENTION_KEEP_YEARLY:=0} | ||
- --retention-keep-tags=${RETENTION_KEEP_TAGS:=} | ||
- --retention-prune=${RETENTION_PRUNE:=false} | ||
- --retention-dry-run=${RETENTION_DRY_RUN:=false} | ||
- --output-dir=${outputDir:=} | ||
- --license-apiservice=${LICENSE_APISERVICE:=} | ||
image: '{{ include "catalog.registry" . }}/stash-kubedump:0.1.0' | ||
{{ end }} |
18 changes: 18 additions & 0 deletions
18
charts/stash-catalog/templates/kubedump/0.1.0/kubedump-backup-task.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,18 @@ | ||
{{ if .Values.kubedump.enabled }} | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: 'kubedump-backup-0.1.0' | ||
labels: | ||
{{- include "stash-catalog.labels" . | nindent 4 }} | ||
spec: | ||
steps: | ||
- name: kubedump-backup-0.1.0 | ||
params: | ||
- name: outputDir | ||
value: /tmp/output | ||
- name: update-status | ||
params: | ||
- name: outputDir | ||
value: /tmp/output | ||
{{ 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
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
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