Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Elasticsearch 8.2.0 (#254)
Signed-off-by: Emruz Hossain <emruz@appscode.com>
- Loading branch information
Emruz Hossain
committed
May 16, 2022
1 parent
41561f8
commit fc96139
Showing
9 changed files
with
206 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
] | ||
}, | ||
{ | ||
|
37 changes: 37 additions & 0 deletions
37
catalog/raw/elasticsearch/8.2.0/elasticsearch-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,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
14
catalog/raw/elasticsearch/8.2.0/elasticsearch-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,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 |
29 changes: 29 additions & 0 deletions
29
catalog/raw/elasticsearch/8.2.0/elasticsearch-restore-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,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
14
catalog/raw/elasticsearch/8.2.0/elasticsearch-restore-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,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 |
41 changes: 41 additions & 0 deletions
41
charts/stash-catalog/templates/elasticsearch/8.2.0/elasticsearch-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,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 }} |
18 changes: 18 additions & 0 deletions
18
charts/stash-catalog/templates/elasticsearch/8.2.0/elasticsearch-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.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 }} |
33 changes: 33 additions & 0 deletions
33
charts/stash-catalog/templates/elasticsearch/8.2.0/elasticsearch-restore-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,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 }} |
18 changes: 18 additions & 0 deletions
18
charts/stash-catalog/templates/elasticsearch/8.2.0/elasticsearch-restore-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.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 }} |