Skip to content

Commit fc96139

Browse files
author
Emruz Hossain
authored
Add support for Elasticsearch 8.2.0 (#254)
Signed-off-by: Emruz Hossain <emruz@appscode.com>
1 parent 41561f8 commit fc96139

9 files changed

+206
-1
lines changed

catalog/catalog.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"6.8.0-v17",
1414
"7.2.0-v17",
1515
"7.3.2-v17",
16-
"7.14.0-v3"
16+
"7.14.0-v3",
17+
"8.2.0"
1718
]
1819
},
1920
{
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
apiVersion: stash.appscode.com/v1beta1
2+
kind: Function
3+
metadata:
4+
name: elasticsearch-backup-8.2.0
5+
spec:
6+
args:
7+
- backup-es
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+
- --wait-timeout=${waitTimeout:=300}
19+
- --hostname=${HOSTNAME:=}
20+
- --interim-data-dir=${INTERIM_DATA_DIR}
21+
- --namespace=${NAMESPACE:=default}
22+
- --appbinding=${TARGET_NAME:=}
23+
- --appbinding-namespace=${TARGET_NAMESPACE:=}
24+
- --backupsession=${BACKUP_SESSION:=}
25+
- --es-args=${args:=}
26+
- --retention-keep-last=${RETENTION_KEEP_LAST:=0}
27+
- --retention-keep-hourly=${RETENTION_KEEP_HOURLY:=0}
28+
- --retention-keep-daily=${RETENTION_KEEP_DAILY:=0}
29+
- --retention-keep-weekly=${RETENTION_KEEP_WEEKLY:=0}
30+
- --retention-keep-monthly=${RETENTION_KEEP_MONTHLY:=0}
31+
- --retention-keep-yearly=${RETENTION_KEEP_YEARLY:=0}
32+
- --retention-keep-tags=${RETENTION_KEEP_TAGS:=}
33+
- --retention-prune=${RETENTION_PRUNE:=false}
34+
- --retention-dry-run=${RETENTION_DRY_RUN:=false}
35+
- --output-dir=${outputDir:=}
36+
- --license-apiservice=${LICENSE_APISERVICE:=}
37+
image: stashed/stash-elasticsearch:8.2.0
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: elasticsearch-backup-8.2.0
5+
spec:
6+
steps:
7+
- name: elasticsearch-backup-8.2.0
8+
params:
9+
- name: outputDir
10+
value: /tmp/output
11+
- name: update-status
12+
params:
13+
- name: outputDir
14+
value: /tmp/output
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: stash.appscode.com/v1beta1
2+
kind: Function
3+
metadata:
4+
name: elasticsearch-restore-8.2.0
5+
spec:
6+
args:
7+
- restore-es
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+
- --wait-timeout=${waitTimeout:=300}
19+
- --hostname=${HOSTNAME:=}
20+
- --source-hostname=${SOURCE_HOSTNAME:=}
21+
- --interim-data-dir=${INTERIM_DATA_DIR}
22+
- --namespace=${NAMESPACE:=default}
23+
- --appbinding=${TARGET_NAME:=}
24+
- --appbinding-namespace=${TARGET_NAMESPACE:=}
25+
- --snapshot=${RESTORE_SNAPSHOTS:=}
26+
- --es-args=${args:=}
27+
- --output-dir=${outputDir:=}
28+
- --license-apiservice=${LICENSE_APISERVICE:=}
29+
image: stashed/stash-elasticsearch:8.2.0
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: elasticsearch-restore-8.2.0
5+
spec:
6+
steps:
7+
- name: elasticsearch-restore-8.2.0
8+
params:
9+
- name: outputDir
10+
value: /tmp/output
11+
- name: update-status
12+
params:
13+
- name: outputDir
14+
value: /tmp/output
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{{ if .Values.elasticsearch.enabled }}
2+
apiVersion: stash.appscode.com/v1beta1
3+
kind: Function
4+
metadata:
5+
name: 'elasticsearch-backup-8.2.0'
6+
labels:
7+
{{- include "stash-catalog.labels" . | nindent 4 }}
8+
spec:
9+
args:
10+
- backup-es
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+
- --wait-timeout=${waitTimeout:={{ .Values.waitTimeout}}}
22+
- --hostname=${HOSTNAME:=}
23+
- --interim-data-dir=${INTERIM_DATA_DIR}
24+
- --namespace=${NAMESPACE:=default}
25+
- --appbinding=${TARGET_NAME:=}
26+
- --appbinding-namespace=${TARGET_NAMESPACE:=}
27+
- --backupsession=${BACKUP_SESSION:=}
28+
- --es-args=${args:={{ .Values.elasticsearch.backup.args }}}
29+
- --retention-keep-last=${RETENTION_KEEP_LAST:=0}
30+
- --retention-keep-hourly=${RETENTION_KEEP_HOURLY:=0}
31+
- --retention-keep-daily=${RETENTION_KEEP_DAILY:=0}
32+
- --retention-keep-weekly=${RETENTION_KEEP_WEEKLY:=0}
33+
- --retention-keep-monthly=${RETENTION_KEEP_MONTHLY:=0}
34+
- --retention-keep-yearly=${RETENTION_KEEP_YEARLY:=0}
35+
- --retention-keep-tags=${RETENTION_KEEP_TAGS:=}
36+
- --retention-prune=${RETENTION_PRUNE:=false}
37+
- --retention-dry-run=${RETENTION_DRY_RUN:=false}
38+
- --output-dir=${outputDir:=}
39+
- --license-apiservice=${LICENSE_APISERVICE:=}
40+
image: '{{ include "catalog.registry" (merge (dict "_reg" "" "_repo" "stashed") .Values) }}/stash-elasticsearch:8.2.0'
41+
{{ end }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{ if .Values.elasticsearch.enabled }}
2+
apiVersion: stash.appscode.com/v1beta1
3+
kind: Task
4+
metadata:
5+
name: 'elasticsearch-backup-8.2.0'
6+
labels:
7+
{{- include "stash-catalog.labels" . | nindent 4 }}
8+
spec:
9+
steps:
10+
- name: elasticsearch-backup-8.2.0
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: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{{ if .Values.elasticsearch.enabled }}
2+
apiVersion: stash.appscode.com/v1beta1
3+
kind: Function
4+
metadata:
5+
name: 'elasticsearch-restore-8.2.0'
6+
labels:
7+
{{- include "stash-catalog.labels" . | nindent 4 }}
8+
spec:
9+
args:
10+
- restore-es
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+
- --wait-timeout=${waitTimeout:={{ .Values.waitTimeout}}}
22+
- --hostname=${HOSTNAME:=}
23+
- --source-hostname=${SOURCE_HOSTNAME:=}
24+
- --interim-data-dir=${INTERIM_DATA_DIR}
25+
- --namespace=${NAMESPACE:=default}
26+
- --appbinding=${TARGET_NAME:=}
27+
- --appbinding-namespace=${TARGET_NAMESPACE:=}
28+
- --snapshot=${RESTORE_SNAPSHOTS:=}
29+
- --es-args=${args:={{ .Values.elasticsearch.restore.args }}}
30+
- --output-dir=${outputDir:=}
31+
- --license-apiservice=${LICENSE_APISERVICE:=}
32+
image: '{{ include "catalog.registry" (merge (dict "_reg" "" "_repo" "stashed") .Values) }}/stash-elasticsearch:8.2.0'
33+
{{ end }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{ if .Values.elasticsearch.enabled }}
2+
apiVersion: stash.appscode.com/v1beta1
3+
kind: Task
4+
metadata:
5+
name: 'elasticsearch-restore-8.2.0'
6+
labels:
7+
{{- include "stash-catalog.labels" . | nindent 4 }}
8+
spec:
9+
steps:
10+
- name: elasticsearch-restore-8.2.0
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)