From 4ea5e2e9fef0f139fbf062788d7d069f2c766749 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sun, 17 Dec 2023 11:11:32 -0800 Subject: [PATCH] Use kubestash Signed-off-by: Tamal Saha --- .../templates/apps/stash/kubestash.yaml | 57 +++++++++++++++++++ charts/ace-installer/values.yaml | 7 ++- .../opscenter-datastore/kubedb.yaml | 2 + 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 charts/ace-installer/templates/apps/stash/kubestash.yaml diff --git a/charts/ace-installer/templates/apps/stash/kubestash.yaml b/charts/ace-installer/templates/apps/stash/kubestash.yaml new file mode 100644 index 000000000..54b89fbe0 --- /dev/null +++ b/charts/ace-installer/templates/apps/stash/kubestash.yaml @@ -0,0 +1,57 @@ +{{- with (index .Values "helm" "releases" "kubestash") }} +{{- if .enabled }} + +{{ $overrides := printf ` +global: + registryFQDN: %s +` (include "registry.ghcr" $) | fromYaml }} + +{{ $vals := dig "values" dict . }} +{{ $vals = mergeOverwrite $vals $overrides }} + +apiVersion: helm.toolkit.fluxcd.io/v2beta2 +kind: HelmRelease +metadata: + name: kubestash + namespace: {{ $.Release.Namespace }} + labels: + app.kubernetes.io/component: kubestash + app.kubernetes.io/part-of: opscenter-backup +spec: + interval: 5m + timeout: 30m + releaseName: kubestash + targetNamespace: kubestash + storageNamespace: kubestash + install: + createNamespace: true + # crds: CreateReplace + remediation: + retries: -1 + upgrade: + crds: CreateReplace + remediation: + retries: -1 + dependsOn: + - name: opscenter-features + namespace: {{ $.Release.Namespace }} + - name: license-proxyserver + namespace: {{ $.Release.Namespace }} + - name: cert-manager + namespace: {{ $.Release.Namespace }} + - name: panopticon + namespace: {{ $.Release.Namespace }} + chart: + spec: + chart: kubestash + version: {{ .version | quote }} + sourceRef: + kind: HelmRepository + name: appscode-charts-oci + namespace: {{ $.Release.Namespace }} +{{- with $vals }} + {{- dict "values" . | toYaml | nindent 2 }} +{{- end }} + +{{- end }} +{{- end }} diff --git a/charts/ace-installer/values.yaml b/charts/ace-installer/values.yaml index 610475c95..42da6b9d7 100644 --- a/charts/ace-installer/values.yaml +++ b/charts/ace-installer/values.yaml @@ -86,13 +86,18 @@ helm: kubedb-ops-manager: enabled: true kubedb-autoscaler: - enabled: false + enabled: true + kubedb-kubestash-catalog: + enabled: true kubedb-dashboard: enabled: false kubedb-schema-manager: enabled: false kubedb-metrics: enabled: false + kubestash: + enabled: true + version: "v2023.12.1" license-proxyserver: enabled: true version: "v2023.11.14" diff --git a/charts/opscenter-features/templates/featuresets/opscenter-datastore/kubedb.yaml b/charts/opscenter-features/templates/featuresets/opscenter-datastore/kubedb.yaml index e813d6905..08ebd6874 100644 --- a/charts/opscenter-features/templates/featuresets/opscenter-datastore/kubedb.yaml +++ b/charts/opscenter-features/templates/featuresets/opscenter-datastore/kubedb.yaml @@ -13,6 +13,8 @@ kubedb-ops-manager: enabled: true kubedb-autoscaler: enabled: true +kubedb-kubestash-catalog: + enabled: true kubedb-dashboard: enabled: true kubedb-schema-manager: