diff --git a/charts/greptimedb-cluster/Chart.yaml b/charts/greptimedb-cluster/Chart.yaml index 1eccf18..5aedf6f 100644 --- a/charts/greptimedb-cluster/Chart.yaml +++ b/charts/greptimedb-cluster/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: greptimedb-cluster description: A Helm chart for deploying GreptimeDB cluster in Kubernetes. type: application -version: 0.2.4 +version: 0.2.5 appVersion: 0.9.1 home: https://github.com/GreptimeTeam/greptimedb sources: diff --git a/charts/greptimedb-cluster/README.md b/charts/greptimedb-cluster/README.md index 151b404..698a885 100644 --- a/charts/greptimedb-cluster/README.md +++ b/charts/greptimedb-cluster/README.md @@ -2,7 +2,7 @@ A Helm chart for deploying GreptimeDB cluster in Kubernetes. -![Version: 0.2.4](https://img.shields.io/badge/Version-0.2.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.1](https://img.shields.io/badge/AppVersion-0.9.1-informational?style=flat-square) +![Version: 0.2.5](https://img.shields.io/badge/Version-0.2.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.1](https://img.shields.io/badge/AppVersion-0.9.1-informational?style=flat-square) ## Source Code diff --git a/charts/greptimedb-cluster/templates/cluster.yaml b/charts/greptimedb-cluster/templates/cluster.yaml index 06cd2e4..7e14442 100644 --- a/charts/greptimedb-cluster/templates/cluster.yaml +++ b/charts/greptimedb-cluster/templates/cluster.yaml @@ -285,16 +285,24 @@ spec: s3: {{- toYaml .Values.objectStorage.s3 | nindent 6 }} {{- if .Values.objectStorage }} {{- if .Values.objectStorage.credentials }} + {{- if .Values.objectStorage.credentials.existingSecretName }} + secretName: {{ .Values.objectStorage.credentials.existingSecretName }} + {{- else }} secretName: {{ default "storage-credentials" .Values.objectStorage.credentials.secretName }} {{- end }} {{- end }} + {{- end }} {{- else if .Values.objectStorage.oss }} oss: {{- toYaml .Values.objectStorage.oss | nindent 6 }} {{- if .Values.objectStorage }} {{- if .Values.objectStorage.credentials }} + {{- if .Values.objectStorage.credentials.existingSecretName }} + secretName: {{ .Values.objectStorage.credentials.existingSecretName }} + {{- else }} secretName: {{ default "storage-credentials" .Values.objectStorage.credentials.secretName }} {{- end }} {{- end }} + {{- end }} {{- else }} {} {{- end }} diff --git a/charts/greptimedb-cluster/templates/secret.yaml b/charts/greptimedb-cluster/templates/secret.yaml index d1927f8..a373609 100644 --- a/charts/greptimedb-cluster/templates/secret.yaml +++ b/charts/greptimedb-cluster/templates/secret.yaml @@ -1,5 +1,6 @@ {{- if .Values.objectStorage }} {{- if .Values.objectStorage.credentials }} +{{- if not .Values.objectStorage.credentials.existingSecretName }} apiVersion: v1 metadata: name: {{ default "storage-credentials" .Values.objectStorage.credentials.secretName }} @@ -11,3 +12,4 @@ stringData: secret-access-key: {{ .Values.objectStorage.credentials.secretAccessKey }} {{- end }} {{- end }} +{{- end }} diff --git a/charts/greptimedb-cluster/values.yaml b/charts/greptimedb-cluster/values.yaml index 0dbd4fa..d1a5a7b 100644 --- a/charts/greptimedb-cluster/values.yaml +++ b/charts/greptimedb-cluster/values.yaml @@ -403,6 +403,7 @@ objectStorage: # accessKeyId: "you-should-set-the-access-key-id-here" # secretAccessKey: "you-should-set-the-secret-access-key-here" # secretName: "" +# existingSecretName: "" # configure to use s3 storage. s3: {}