Skip to content

Commit fcb4bdb

Browse files
author
Emruz Hossain
authored
Add catalog for Redis 7.0.4 (#273)
Signed-off-by: Emruz Hossain <emruz@appscode.com>
1 parent 9e8273f commit fcb4bdb

File tree

9 files changed

+202
-1
lines changed

9 files changed

+202
-1
lines changed

catalog/catalog.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090
"name": "redis",
9191
"versions": [
9292
"5.0.13-v6",
93-
"6.2.5-v6"
93+
"6.2.5-v6",
94+
"7.0.4"
9495
]
9596
}
9697
]
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
apiVersion: stash.appscode.com/v1beta1
2+
kind: Function
3+
metadata:
4+
name: redis-backup-7.0.4
5+
spec:
6+
args:
7+
- backup-redis
8+
- --provider=${REPOSITORY_PROVIDER:=}
9+
- --bucket=${REPOSITORY_BUCKET:=}
10+
- --endpoint=${REPOSITORY_ENDPOINT:=}
11+
- --region=${REPOSITORY_REGION:=}
12+
- --path=${REPOSITORY_PREFIX:=}
13+
- --storage-secret-name=${REPOSITORY_SECRET_NAME:=}
14+
- --storage-secret-namespace=${REPOSITORY_SECRET_NAMESPACE:=}
15+
- --scratch-dir=/tmp
16+
- --enable-cache=${ENABLE_CACHE:=true}
17+
- --max-connections=${MAX_CONNECTIONS:=0}
18+
- --hostname=${HOSTNAME:=}
19+
- --redis-args=${args:=}
20+
- --wait-timeout=${waitTimeout:=300}
21+
- --namespace=${NAMESPACE:=default}
22+
- --appbinding=${TARGET_NAME:=}
23+
- --appbinding-namespace=${TARGET_NAMESPACE:=}
24+
- --backupsession=${BACKUP_SESSION:=}
25+
- --retention-keep-last=${RETENTION_KEEP_LAST:=0}
26+
- --retention-keep-hourly=${RETENTION_KEEP_HOURLY:=0}
27+
- --retention-keep-daily=${RETENTION_KEEP_DAILY:=0}
28+
- --retention-keep-weekly=${RETENTION_KEEP_WEEKLY:=0}
29+
- --retention-keep-monthly=${RETENTION_KEEP_MONTHLY:=0}
30+
- --retention-keep-yearly=${RETENTION_KEEP_YEARLY:=0}
31+
- --retention-keep-tags=${RETENTION_KEEP_TAGS:=}
32+
- --retention-prune=${RETENTION_PRUNE:=false}
33+
- --retention-dry-run=${RETENTION_DRY_RUN:=false}
34+
- --output-dir=${outputDir:=}
35+
- --license-apiservice=${LICENSE_APISERVICE:=}
36+
image: stashed/stash-redis:7.0.4
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: stash.appscode.com/v1beta1
2+
kind: Task
3+
metadata:
4+
name: redis-backup-7.0.4
5+
spec:
6+
steps:
7+
- name: redis-backup-7.0.4
8+
params:
9+
- name: outputDir
10+
value: /tmp/output
11+
- name: update-status
12+
params:
13+
- name: outputDir
14+
value: /tmp/output
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: stash.appscode.com/v1beta1
2+
kind: Function
3+
metadata:
4+
name: redis-restore-7.0.4
5+
spec:
6+
args:
7+
- restore-redis
8+
- --provider=${REPOSITORY_PROVIDER:=}
9+
- --bucket=${REPOSITORY_BUCKET:=}
10+
- --endpoint=${REPOSITORY_ENDPOINT:=}
11+
- --region=${REPOSITORY_REGION:=}
12+
- --path=${REPOSITORY_PREFIX:=}
13+
- --storage-secret-name=${REPOSITORY_SECRET_NAME:=}
14+
- --storage-secret-namespace=${REPOSITORY_SECRET_NAMESPACE:=}
15+
- --scratch-dir=/tmp
16+
- --enable-cache=${ENABLE_CACHE:=true}
17+
- --max-connections=${MAX_CONNECTIONS:=0}
18+
- --hostname=${HOSTNAME:=}
19+
- --source-hostname=${SOURCE_HOSTNAME:=}
20+
- --redis-args=${args:=}
21+
- --wait-timeout=${waitTimeout:=300}
22+
- --namespace=${NAMESPACE:=default}
23+
- --appbinding=${TARGET_NAME:=}
24+
- --appbinding-namespace=${TARGET_NAMESPACE:=}
25+
- --snapshot=${RESTORE_SNAPSHOTS:=}
26+
- --output-dir=${outputDir:=}
27+
- --license-apiservice=${LICENSE_APISERVICE:=}
28+
image: stashed/stash-redis:7.0.4
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: stash.appscode.com/v1beta1
2+
kind: Task
3+
metadata:
4+
name: redis-restore-7.0.4
5+
spec:
6+
steps:
7+
- name: redis-restore-7.0.4
8+
params:
9+
- name: outputDir
10+
value: /tmp/output
11+
- name: update-status
12+
params:
13+
- name: outputDir
14+
value: /tmp/output
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{{ if .Values.redis.enabled }}
2+
apiVersion: stash.appscode.com/v1beta1
3+
kind: Function
4+
metadata:
5+
name: 'redis-backup-7.0.4'
6+
labels:
7+
{{- include "stash-catalog.labels" . | nindent 4 }}
8+
spec:
9+
args:
10+
- backup-redis
11+
- --provider=${REPOSITORY_PROVIDER:=}
12+
- --bucket=${REPOSITORY_BUCKET:=}
13+
- --endpoint=${REPOSITORY_ENDPOINT:=}
14+
- --region=${REPOSITORY_REGION:=}
15+
- --path=${REPOSITORY_PREFIX:=}
16+
- --storage-secret-name=${REPOSITORY_SECRET_NAME:=}
17+
- --storage-secret-namespace=${REPOSITORY_SECRET_NAMESPACE:=}
18+
- --scratch-dir=/tmp
19+
- --enable-cache=${ENABLE_CACHE:=true}
20+
- --max-connections=${MAX_CONNECTIONS:=0}
21+
- --hostname=${HOSTNAME:=}
22+
- --redis-args=${args:={{ .Values.redis.backup.args }}}
23+
- --wait-timeout=${waitTimeout:={{ .Values.waitTimeout}}}
24+
- --namespace=${NAMESPACE:=default}
25+
- --appbinding=${TARGET_NAME:=}
26+
- --appbinding-namespace=${TARGET_NAMESPACE:=}
27+
- --backupsession=${BACKUP_SESSION:=}
28+
- --retention-keep-last=${RETENTION_KEEP_LAST:=0}
29+
- --retention-keep-hourly=${RETENTION_KEEP_HOURLY:=0}
30+
- --retention-keep-daily=${RETENTION_KEEP_DAILY:=0}
31+
- --retention-keep-weekly=${RETENTION_KEEP_WEEKLY:=0}
32+
- --retention-keep-monthly=${RETENTION_KEEP_MONTHLY:=0}
33+
- --retention-keep-yearly=${RETENTION_KEEP_YEARLY:=0}
34+
- --retention-keep-tags=${RETENTION_KEEP_TAGS:=}
35+
- --retention-prune=${RETENTION_PRUNE:=false}
36+
- --retention-dry-run=${RETENTION_DRY_RUN:=false}
37+
- --output-dir=${outputDir:=}
38+
- --license-apiservice=${LICENSE_APISERVICE:=}
39+
image: '{{ include "catalog.registry" (merge (dict "_reg" "" "_repo" "stashed") .Values) }}/stash-redis:7.0.4'
40+
{{ end }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{ if .Values.redis.enabled }}
2+
apiVersion: stash.appscode.com/v1beta1
3+
kind: Task
4+
metadata:
5+
name: 'redis-backup-7.0.4'
6+
labels:
7+
{{- include "stash-catalog.labels" . | nindent 4 }}
8+
spec:
9+
steps:
10+
- name: redis-backup-7.0.4
11+
params:
12+
- name: outputDir
13+
value: /tmp/output
14+
- name: update-status
15+
params:
16+
- name: outputDir
17+
value: /tmp/output
18+
{{ end }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{{ if .Values.redis.enabled }}
2+
apiVersion: stash.appscode.com/v1beta1
3+
kind: Function
4+
metadata:
5+
name: 'redis-restore-7.0.4'
6+
labels:
7+
{{- include "stash-catalog.labels" . | nindent 4 }}
8+
spec:
9+
args:
10+
- restore-redis
11+
- --provider=${REPOSITORY_PROVIDER:=}
12+
- --bucket=${REPOSITORY_BUCKET:=}
13+
- --endpoint=${REPOSITORY_ENDPOINT:=}
14+
- --region=${REPOSITORY_REGION:=}
15+
- --path=${REPOSITORY_PREFIX:=}
16+
- --storage-secret-name=${REPOSITORY_SECRET_NAME:=}
17+
- --storage-secret-namespace=${REPOSITORY_SECRET_NAMESPACE:=}
18+
- --scratch-dir=/tmp
19+
- --enable-cache=${ENABLE_CACHE:=true}
20+
- --max-connections=${MAX_CONNECTIONS:=0}
21+
- --hostname=${HOSTNAME:=}
22+
- --source-hostname=${SOURCE_HOSTNAME:=}
23+
- --redis-args=${args:={{ .Values.redis.restore.args }}}
24+
- --wait-timeout=${waitTimeout:={{ .Values.waitTimeout}}}
25+
- --namespace=${NAMESPACE:=default}
26+
- --appbinding=${TARGET_NAME:=}
27+
- --appbinding-namespace=${TARGET_NAMESPACE:=}
28+
- --snapshot=${RESTORE_SNAPSHOTS:=}
29+
- --output-dir=${outputDir:=}
30+
- --license-apiservice=${LICENSE_APISERVICE:=}
31+
image: '{{ include "catalog.registry" (merge (dict "_reg" "" "_repo" "stashed") .Values) }}/stash-redis:7.0.4'
32+
{{ end }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{ if .Values.redis.enabled }}
2+
apiVersion: stash.appscode.com/v1beta1
3+
kind: Task
4+
metadata:
5+
name: 'redis-restore-7.0.4'
6+
labels:
7+
{{- include "stash-catalog.labels" . | nindent 4 }}
8+
spec:
9+
steps:
10+
- name: redis-restore-7.0.4
11+
params:
12+
- name: outputDir
13+
value: /tmp/output
14+
- name: update-status
15+
params:
16+
- name: outputDir
17+
value: /tmp/output
18+
{{ end }}

0 commit comments

Comments
 (0)