From 8e75c57b1c24fc9ef5bb6c32231a40b008b65bf5 Mon Sep 17 00:00:00 2001 From: hmsayem Date: Mon, 6 Nov 2023 12:27:52 +0600 Subject: [PATCH] Fix default interim dir for elastiseeach Signed-off-by: hmsayem --- .../elasticsearch/elasticsearch-addon.yaml | 4 +- catalog/raw/opensearch/opensearch-addon.yaml | 144 +++++++++--------- .../elasticsearch/elasticsearch-addon.yaml | 4 +- .../opensearch/opensearch-addon.yaml | 4 +- 4 files changed, 78 insertions(+), 78 deletions(-) diff --git a/catalog/raw/elasticsearch/elasticsearch-addon.yaml b/catalog/raw/elasticsearch/elasticsearch-addon.yaml index c2c1d774..fde9e584 100644 --- a/catalog/raw/elasticsearch/elasticsearch-addon.yaml +++ b/catalog/raw/elasticsearch/elasticsearch-addon.yaml @@ -52,9 +52,9 @@ spec: required: false default: "--match=^(?![.])(?!apm-agent-configuration)(?!kubedb-system).+" - name: interimDataDir - usage: Specifes the directory where data will be stored temporarily before uploading to the backend. + usage: Specifes the directory where data will be stored temporarily before dumping to the database. required: false - default: /kubestash-interim/tmp + default: /kubestash-interim/data - name: enableCache usage: Enable or disable caching. Disabling caching may impact backup performance. required: false diff --git a/catalog/raw/opensearch/opensearch-addon.yaml b/catalog/raw/opensearch/opensearch-addon.yaml index 76a486f0..34ecf445 100644 --- a/catalog/raw/opensearch/opensearch-addon.yaml +++ b/catalog/raw/opensearch/opensearch-addon.yaml @@ -4,76 +4,76 @@ metadata: name: opensearch-addon spec: backupTasks: - - name: LogicalBackup - function: opensearch-backup - driver: Restic - executor: Job - singleton: true - parameters: - - name: args - usage: Arguments to be passed to the dump command. - required: false - default: "--match=^(?![.])(?!security-auditlog)(?!kubedb-system).+" - - name: interimDataDir - usage: Directory where data will be stored temporarily before uploading to the backend. - required: false - default: /kubestash-interim/data - - name: enableCache - usage: Enable or disable caching. Disabling caching may impact backup performance. - required: false - default: "true" - - name: scratchDir - usage: Directory for holding temporary files and restic cache. - required: false - default: /kubestash-tmp - volumeTemplate: - - name: kubestash-interim-volume - usage: Holds backed up data temporarily before uploading to the backend. - source: - emptyDir: {} - - name: kubestash-tmp-volume - usage: Holds temporary files and restic cache. - source: - emptyDir: {} - volumeMounts: - - name: kubestash-interim-volume - mountPath: /kubestash-interim - - name: kubestash-tmp-volume - mountPath: /kubestash-tmp + - name: LogicalBackup + function: opensearch-backup + driver: Restic + executor: Job + singleton: true + parameters: + - name: args + usage: Arguments to be passed to the dump command. + required: false + default: "--match=^(?![.])(?!security-auditlog)(?!kubedb-system).+" + - name: interimDataDir + usage: Directory where data will be stored temporarily before uploading to the backend. + required: false + default: /kubestash-interim/data + - name: enableCache + usage: Enable or disable caching. Disabling caching may impact backup performance. + required: false + default: "true" + - name: scratchDir + usage: Directory for holding temporary files and restic cache. + required: false + default: /kubestash-tmp + volumeTemplate: + - name: kubestash-interim-volume + usage: Holds backed up data temporarily before uploading to the backend. + source: + emptyDir: {} + - name: kubestash-tmp-volume + usage: Holds temporary files and restic cache. + source: + emptyDir: {} + volumeMounts: + - name: kubestash-interim-volume + mountPath: /kubestash-interim + - name: kubestash-tmp-volume + mountPath: /kubestash-tmp restoreTasks: - - name: LogicalBackupRestore - function: opensearch-restore - driver: Restic - executor: Job - singleton: true - parameters: - - name: args - usage: Arguments to be passed to the dump command. - required: false - default: "--match=^(?![.])(?!security-auditlog)(?!kubedb-system).+" - - name: interimDataDir - usage: Specifes the directory where data will be stored temporarily before uploading to the backend. - required: false - default: /kubestash-interim/tmp - - name: enableCache - usage: Enable or disable caching. Disabling caching may impact backup performance. - required: false - default: "true" - - name: scratchDir - usage: Directory for holding temporary files and restic cache. - required: false - default: /kubestash-tmp - volumeTemplate: - - name: kubestash-interim-volume - usage: Holds backed up data temporarily before dumping to the database. - source: - emptyDir: {} - - name: kubestash-tmp-volume - usage: Holds temporary files and restic cache. - source: - emptyDir: {} - volumeMounts: - - name: kubestash-interim-volume - mountPath: /kubestash-interim - - name: kubestash-tmp-volume - mountPath: /kubestash-tmp + - name: LogicalBackupRestore + function: opensearch-restore + driver: Restic + executor: Job + singleton: true + parameters: + - name: args + usage: Arguments to be passed to the dump command. + required: false + default: "--match=^(?![.])(?!security-auditlog)(?!kubedb-system).+" + - name: interimDataDir + usage: Specifes the directory where data will be stored temporarily before dumping to the database. + required: false + default: /kubestash-interim/data + - name: enableCache + usage: Enable or disable caching. Disabling caching may impact backup performance. + required: false + default: "true" + - name: scratchDir + usage: Directory for holding temporary files and restic cache. + required: false + default: /kubestash-tmp + volumeTemplate: + - name: kubestash-interim-volume + usage: Holds backed up data temporarily before dumping to the database. + source: + emptyDir: {} + - name: kubestash-tmp-volume + usage: Holds temporary files and restic cache. + source: + emptyDir: {} + volumeMounts: + - name: kubestash-interim-volume + mountPath: /kubestash-interim + - name: kubestash-tmp-volume + mountPath: /kubestash-tmp diff --git a/charts/kubestash-catalog/templates/elasticsearch/elasticsearch-addon.yaml b/charts/kubestash-catalog/templates/elasticsearch/elasticsearch-addon.yaml index 1c753f83..c2e7e542 100644 --- a/charts/kubestash-catalog/templates/elasticsearch/elasticsearch-addon.yaml +++ b/charts/kubestash-catalog/templates/elasticsearch/elasticsearch-addon.yaml @@ -53,10 +53,10 @@ spec: name: args required: false usage: Arguments to be passed to the dump command. - - default: /kubestash-interim/tmp + - default: /kubestash-interim/data name: interimDataDir required: false - usage: Specifes the directory where data will be stored temporarily before uploading to the backend. + usage: Specifes the directory where data will be stored temporarily before dumping to the database. - default: "true" name: enableCache required: false diff --git a/charts/kubestash-catalog/templates/opensearch/opensearch-addon.yaml b/charts/kubestash-catalog/templates/opensearch/opensearch-addon.yaml index 443016b0..b988d598 100644 --- a/charts/kubestash-catalog/templates/opensearch/opensearch-addon.yaml +++ b/charts/kubestash-catalog/templates/opensearch/opensearch-addon.yaml @@ -53,10 +53,10 @@ spec: name: args required: false usage: Arguments to be passed to the dump command. - - default: /kubestash-interim/tmp + - default: /kubestash-interim/data name: interimDataDir required: false - usage: Specifes the directory where data will be stored temporarily before uploading to the backend. + usage: Specifes the directory where data will be stored temporarily before dumping to the database. - default: "true" name: enableCache required: false