Skip to content

Commit

Permalink
Add support for Elasticsearch 8.2.0 (#254)
Browse files Browse the repository at this point in the history
Signed-off-by: Emruz Hossain <emruz@appscode.com>
  • Loading branch information
Emruz Hossain committed May 16, 2022
1 parent 41561f8 commit fc96139
Show file tree
Hide file tree
Showing 9 changed files with 206 additions and 1 deletion.
3 changes: 2 additions & 1 deletion catalog/catalog.json
Expand Up @@ -13,7 +13,8 @@
"6.8.0-v17",
"7.2.0-v17",
"7.3.2-v17",
"7.14.0-v3"
"7.14.0-v3",
"8.2.0"
]
},
{
Expand Down
37 changes: 37 additions & 0 deletions catalog/raw/elasticsearch/8.2.0/elasticsearch-backup-function.yaml
@@ -0,0 +1,37 @@
apiVersion: stash.appscode.com/v1beta1
kind: Function
metadata:
name: elasticsearch-backup-8.2.0
spec:
args:
- backup-es
- --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}
- --wait-timeout=${waitTimeout:=300}
- --hostname=${HOSTNAME:=}
- --interim-data-dir=${INTERIM_DATA_DIR}
- --namespace=${NAMESPACE:=default}
- --appbinding=${TARGET_NAME:=}
- --appbinding-namespace=${TARGET_NAMESPACE:=}
- --backupsession=${BACKUP_SESSION:=}
- --es-args=${args:=}
- --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-elasticsearch:8.2.0
14 changes: 14 additions & 0 deletions catalog/raw/elasticsearch/8.2.0/elasticsearch-backup-task.yaml
@@ -0,0 +1,14 @@
apiVersion: stash.appscode.com/v1beta1
kind: Task
metadata:
name: elasticsearch-backup-8.2.0
spec:
steps:
- name: elasticsearch-backup-8.2.0
params:
- name: outputDir
value: /tmp/output
- name: update-status
params:
- name: outputDir
value: /tmp/output
@@ -0,0 +1,29 @@
apiVersion: stash.appscode.com/v1beta1
kind: Function
metadata:
name: elasticsearch-restore-8.2.0
spec:
args:
- restore-es
- --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}
- --wait-timeout=${waitTimeout:=300}
- --hostname=${HOSTNAME:=}
- --source-hostname=${SOURCE_HOSTNAME:=}
- --interim-data-dir=${INTERIM_DATA_DIR}
- --namespace=${NAMESPACE:=default}
- --appbinding=${TARGET_NAME:=}
- --appbinding-namespace=${TARGET_NAMESPACE:=}
- --snapshot=${RESTORE_SNAPSHOTS:=}
- --es-args=${args:=}
- --output-dir=${outputDir:=}
- --license-apiservice=${LICENSE_APISERVICE:=}
image: stashed/stash-elasticsearch:8.2.0
14 changes: 14 additions & 0 deletions catalog/raw/elasticsearch/8.2.0/elasticsearch-restore-task.yaml
@@ -0,0 +1,14 @@
apiVersion: stash.appscode.com/v1beta1
kind: Task
metadata:
name: elasticsearch-restore-8.2.0
spec:
steps:
- name: elasticsearch-restore-8.2.0
params:
- name: outputDir
value: /tmp/output
- name: update-status
params:
- name: outputDir
value: /tmp/output
@@ -0,0 +1,41 @@
{{ if .Values.elasticsearch.enabled }}
apiVersion: stash.appscode.com/v1beta1
kind: Function
metadata:
name: 'elasticsearch-backup-8.2.0'
labels:
{{- include "stash-catalog.labels" . | nindent 4 }}
spec:
args:
- backup-es
- --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}
- --wait-timeout=${waitTimeout:={{ .Values.waitTimeout}}}
- --hostname=${HOSTNAME:=}
- --interim-data-dir=${INTERIM_DATA_DIR}
- --namespace=${NAMESPACE:=default}
- --appbinding=${TARGET_NAME:=}
- --appbinding-namespace=${TARGET_NAMESPACE:=}
- --backupsession=${BACKUP_SESSION:=}
- --es-args=${args:={{ .Values.elasticsearch.backup.args }}}
- --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" (merge (dict "_reg" "" "_repo" "stashed") .Values) }}/stash-elasticsearch:8.2.0'
{{ end }}
@@ -0,0 +1,18 @@
{{ if .Values.elasticsearch.enabled }}
apiVersion: stash.appscode.com/v1beta1
kind: Task
metadata:
name: 'elasticsearch-backup-8.2.0'
labels:
{{- include "stash-catalog.labels" . | nindent 4 }}
spec:
steps:
- name: elasticsearch-backup-8.2.0
params:
- name: outputDir
value: /tmp/output
- name: update-status
params:
- name: outputDir
value: /tmp/output
{{ end }}
@@ -0,0 +1,33 @@
{{ if .Values.elasticsearch.enabled }}
apiVersion: stash.appscode.com/v1beta1
kind: Function
metadata:
name: 'elasticsearch-restore-8.2.0'
labels:
{{- include "stash-catalog.labels" . | nindent 4 }}
spec:
args:
- restore-es
- --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}
- --wait-timeout=${waitTimeout:={{ .Values.waitTimeout}}}
- --hostname=${HOSTNAME:=}
- --source-hostname=${SOURCE_HOSTNAME:=}
- --interim-data-dir=${INTERIM_DATA_DIR}
- --namespace=${NAMESPACE:=default}
- --appbinding=${TARGET_NAME:=}
- --appbinding-namespace=${TARGET_NAMESPACE:=}
- --snapshot=${RESTORE_SNAPSHOTS:=}
- --es-args=${args:={{ .Values.elasticsearch.restore.args }}}
- --output-dir=${outputDir:=}
- --license-apiservice=${LICENSE_APISERVICE:=}
image: '{{ include "catalog.registry" (merge (dict "_reg" "" "_repo" "stashed") .Values) }}/stash-elasticsearch:8.2.0'
{{ end }}
@@ -0,0 +1,18 @@
{{ if .Values.elasticsearch.enabled }}
apiVersion: stash.appscode.com/v1beta1
kind: Task
metadata:
name: 'elasticsearch-restore-8.2.0'
labels:
{{- include "stash-catalog.labels" . | nindent 4 }}
spec:
steps:
- name: elasticsearch-restore-8.2.0
params:
- name: outputDir
value: /tmp/output
- name: update-status
params:
- name: outputDir
value: /tmp/output
{{ end }}

0 comments on commit fc96139

Please sign in to comment.