From af2e017c814f2a72fefaae926027f92bd7f1ceb1 Mon Sep 17 00:00:00 2001 From: liyang Date: Mon, 4 Nov 2024 13:58:29 +0800 Subject: [PATCH] refactor(greptimedb-standalone): rename secret and configmap (#190) --- charts/greptimedb-standalone/Chart.yaml | 2 +- charts/greptimedb-standalone/README.md | 2 +- charts/greptimedb-standalone/templates/configmap.yaml | 2 +- charts/greptimedb-standalone/templates/secret.yaml | 2 +- charts/greptimedb-standalone/templates/serviceaccount.yaml | 2 +- charts/greptimedb-standalone/templates/statefulset.yaml | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/charts/greptimedb-standalone/Chart.yaml b/charts/greptimedb-standalone/Chart.yaml index b57e9ae..62a8650 100644 --- a/charts/greptimedb-standalone/Chart.yaml +++ b/charts/greptimedb-standalone/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: greptimedb-standalone description: A Helm chart for deploying standalone greptimedb type: application -version: 0.1.30 +version: 0.1.31 appVersion: 0.9.5 home: https://github.com/GreptimeTeam/greptimedb sources: diff --git a/charts/greptimedb-standalone/README.md b/charts/greptimedb-standalone/README.md index 7d7e0ac..71de1d8 100644 --- a/charts/greptimedb-standalone/README.md +++ b/charts/greptimedb-standalone/README.md @@ -2,7 +2,7 @@ A Helm chart for deploying standalone greptimedb -![Version: 0.1.30](https://img.shields.io/badge/Version-0.1.30-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.5](https://img.shields.io/badge/AppVersion-0.9.5-informational?style=flat-square) +![Version: 0.1.31](https://img.shields.io/badge/Version-0.1.31-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.5](https://img.shields.io/badge/AppVersion-0.9.5-informational?style=flat-square) ## Source Code - https://github.com/GreptimeTeam/greptimedb diff --git a/charts/greptimedb-standalone/templates/configmap.yaml b/charts/greptimedb-standalone/templates/configmap.yaml index 4998741..3de9452 100644 --- a/charts/greptimedb-standalone/templates/configmap.yaml +++ b/charts/greptimedb-standalone/templates/configmap.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: ConfigMap metadata: - name: {{ .Release.Name }}-config + name: {{ include "greptimedb-standalone.fullname" . }}-config namespace: {{ .Release.Namespace }} labels: {{- include "greptimedb-standalone.labels" . | nindent 4 }} diff --git a/charts/greptimedb-standalone/templates/secret.yaml b/charts/greptimedb-standalone/templates/secret.yaml index 9050d89..c025f59 100644 --- a/charts/greptimedb-standalone/templates/secret.yaml +++ b/charts/greptimedb-standalone/templates/secret.yaml @@ -3,7 +3,7 @@ {{- if not .Values.objectStorage.credentials.existingSecretName }} apiVersion: v1 metadata: - name: {{ .Release.Name }}-secret + name: {{ include "greptimedb-standalone.fullname" . }}-secret namespace: {{ .Release.Namespace }} kind: Secret type: Opaque diff --git a/charts/greptimedb-standalone/templates/serviceaccount.yaml b/charts/greptimedb-standalone/templates/serviceaccount.yaml index fb5abec..e610764 100644 --- a/charts/greptimedb-standalone/templates/serviceaccount.yaml +++ b/charts/greptimedb-standalone/templates/serviceaccount.yaml @@ -1,4 +1,4 @@ -{{- if .Values.serviceAccount.create -}} +{{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: diff --git a/charts/greptimedb-standalone/templates/statefulset.yaml b/charts/greptimedb-standalone/templates/statefulset.yaml index 5fbe8b2..3118262 100644 --- a/charts/greptimedb-standalone/templates/statefulset.yaml +++ b/charts/greptimedb-standalone/templates/statefulset.yaml @@ -100,7 +100,7 @@ spec: {{- if .Values.objectStorage.credentials.existingSecretName }} name: {{ .Values.objectStorage.credentials.existingSecretName }} {{- else }} - name: {{ .Release.Name }}-secret + name: {{ include "greptimedb-standalone.fullname" . }}-secret {{- end }} {{- end }} {{- end }} @@ -128,7 +128,7 @@ spec: {{- if .Values.configToml }} - name: config configMap: - name: {{ .Release.Name }}-config + name: {{ include "greptimedb-standalone.fullname" . }}-config {{- end }} {{- with .Values.extraVolumes }} {{- toYaml . | nindent 8 }}