-
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 support for Elasticsearch 7.14.0 (#214)
Signed-off-by: Emruz Hossain <[email protected]>
- Loading branch information
Emruz Hossain
authored
Nov 23, 2021
1 parent
f31eaaf
commit bcbb9ea
Showing
9 changed files
with
242 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 |
---|---|---|
|
@@ -12,7 +12,8 @@ | |
"6.5.3-v13", | ||
"6.8.0-v13", | ||
"7.2.0-v13", | ||
"7.3.2-v13" | ||
"7.3.2-v13", | ||
"7.14.0" | ||
] | ||
}, | ||
{ | ||
|
38 changes: 38 additions & 0 deletions
38
catalog/raw/elasticsearch/7.14.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,38 @@ | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Function | ||
metadata: | ||
name: elasticsearch-backup-7.14.0 | ||
spec: | ||
args: | ||
- backup-es | ||
- --provider=${REPOSITORY_PROVIDER:=} | ||
- --bucket=${REPOSITORY_BUCKET:=} | ||
- --endpoint=${REPOSITORY_ENDPOINT:=} | ||
- --region=${REPOSITORY_REGION:=} | ||
- --path=${REPOSITORY_PREFIX:=} | ||
- --secret-dir=/etc/repository/secret | ||
- --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:=} | ||
- --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:7.14.0 | ||
volumeMounts: | ||
- mountPath: /etc/repository/secret | ||
name: ${secretVolume} |
22 changes: 22 additions & 0 deletions
22
catalog/raw/elasticsearch/7.14.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,22 @@ | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: elasticsearch-backup-7.14.0 | ||
spec: | ||
steps: | ||
- name: elasticsearch-backup-7.14.0 | ||
params: | ||
- name: outputDir | ||
value: /tmp/output | ||
- name: secretVolume | ||
value: secret-volume | ||
- name: update-status | ||
params: | ||
- name: outputDir | ||
value: /tmp/output | ||
- name: secretVolume | ||
value: secret-volume | ||
volumes: | ||
- name: secret-volume | ||
secret: | ||
secretName: ${REPOSITORY_SECRET_NAME} |
30 changes: 30 additions & 0 deletions
30
catalog/raw/elasticsearch/7.14.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,30 @@ | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Function | ||
metadata: | ||
name: elasticsearch-restore-7.14.0 | ||
spec: | ||
args: | ||
- restore-es | ||
- --provider=${REPOSITORY_PROVIDER:=} | ||
- --bucket=${REPOSITORY_BUCKET:=} | ||
- --endpoint=${REPOSITORY_ENDPOINT:=} | ||
- --region=${REPOSITORY_REGION:=} | ||
- --path=${REPOSITORY_PREFIX:=} | ||
- --secret-dir=/etc/repository/secret | ||
- --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:=} | ||
- --snapshot=${RESTORE_SNAPSHOTS:=} | ||
- --es-args=${args:=} | ||
- --output-dir=${outputDir:=} | ||
- --license-apiservice=${LICENSE_APISERVICE:=} | ||
image: stashed/stash-elasticsearch:7.14.0 | ||
volumeMounts: | ||
- mountPath: /etc/repository/secret | ||
name: ${secretVolume} |
22 changes: 22 additions & 0 deletions
22
catalog/raw/elasticsearch/7.14.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,22 @@ | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: elasticsearch-restore-7.14.0 | ||
spec: | ||
steps: | ||
- name: elasticsearch-restore-7.14.0 | ||
params: | ||
- name: outputDir | ||
value: /tmp/output | ||
- name: secretVolume | ||
value: secret-volume | ||
- name: update-status | ||
params: | ||
- name: outputDir | ||
value: /tmp/output | ||
- name: secretVolume | ||
value: secret-volume | ||
volumes: | ||
- name: secret-volume | ||
secret: | ||
secretName: ${REPOSITORY_SECRET_NAME} |
42 changes: 42 additions & 0 deletions
42
charts/stash-catalog/templates/elasticsearch/7.14.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,42 @@ | ||
{{ if .Values.elasticsearch.enabled }} | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Function | ||
metadata: | ||
name: 'elasticsearch-backup-7.14.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:=} | ||
- --secret-dir=/etc/repository/secret | ||
- --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:=} | ||
- --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" . }}/stash-elasticsearch:7.14.0' | ||
volumeMounts: | ||
- mountPath: /etc/repository/secret | ||
name: ${secretVolume} | ||
{{ end }} |
26 changes: 26 additions & 0 deletions
26
charts/stash-catalog/templates/elasticsearch/7.14.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,26 @@ | ||
{{ if .Values.elasticsearch.enabled }} | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: 'elasticsearch-backup-7.14.0' | ||
labels: | ||
{{- include "stash-catalog.labels" . | nindent 4 }} | ||
spec: | ||
steps: | ||
- name: elasticsearch-backup-7.14.0 | ||
params: | ||
- name: outputDir | ||
value: /tmp/output | ||
- name: secretVolume | ||
value: secret-volume | ||
- name: update-status | ||
params: | ||
- name: outputDir | ||
value: /tmp/output | ||
- name: secretVolume | ||
value: secret-volume | ||
volumes: | ||
- name: secret-volume | ||
secret: | ||
secretName: ${REPOSITORY_SECRET_NAME} | ||
{{ end }} |
34 changes: 34 additions & 0 deletions
34
charts/stash-catalog/templates/elasticsearch/7.14.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,34 @@ | ||
{{ if .Values.elasticsearch.enabled }} | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Function | ||
metadata: | ||
name: 'elasticsearch-restore-7.14.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:=} | ||
- --secret-dir=/etc/repository/secret | ||
- --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:=} | ||
- --snapshot=${RESTORE_SNAPSHOTS:=} | ||
- --es-args=${args:={{ .Values.elasticsearch.restore.args }}} | ||
- --output-dir=${outputDir:=} | ||
- --license-apiservice=${LICENSE_APISERVICE:=} | ||
image: '{{ include "catalog.registry" . }}/stash-elasticsearch:7.14.0' | ||
volumeMounts: | ||
- mountPath: /etc/repository/secret | ||
name: ${secretVolume} | ||
{{ end }} |
26 changes: 26 additions & 0 deletions
26
charts/stash-catalog/templates/elasticsearch/7.14.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,26 @@ | ||
{{ if .Values.elasticsearch.enabled }} | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: 'elasticsearch-restore-7.14.0' | ||
labels: | ||
{{- include "stash-catalog.labels" . | nindent 4 }} | ||
spec: | ||
steps: | ||
- name: elasticsearch-restore-7.14.0 | ||
params: | ||
- name: outputDir | ||
value: /tmp/output | ||
- name: secretVolume | ||
value: secret-volume | ||
- name: update-status | ||
params: | ||
- name: outputDir | ||
value: /tmp/output | ||
- name: secretVolume | ||
value: secret-volume | ||
volumes: | ||
- name: secret-volume | ||
secret: | ||
secretName: ${REPOSITORY_SECRET_NAME} | ||
{{ end }} |