Skip to content

Commit

Permalink
chore(greptimedb-cluster): add frontend, meta serviceaccount (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviderli614 authored Apr 12, 2024
1 parent db422b0 commit 9dd50c9
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/greptimedb-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: greptimedb-cluster
description: A Helm chart for deploying GreptimeDB cluster in Kubernetes
type: application
version: 0.1.25
version: 0.1.26
appVersion: 0.7.2
home: https://github.com/GreptimeTeam/greptimedb
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/greptimedb-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Helm chart for deploying GreptimeDB cluster in Kubernetes

![Version: 0.1.25](https://img.shields.io/badge/Version-0.1.25-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.7.2](https://img.shields.io/badge/AppVersion-0.7.2-informational?style=flat-square)
![Version: 0.1.26](https://img.shields.io/badge/Version-0.1.26-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.7.2](https://img.shields.io/badge/AppVersion-0.7.2-informational?style=flat-square)

## Source Code

Expand Down
8 changes: 4 additions & 4 deletions charts/greptimedb-cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ spec:
{{- if .Values.frontend.podTemplate.labels }}
labels: {{ .Values.frontend.podTemplate.labels | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.frontend.podTemplate.serviceAccountName }}
serviceAccountName: {{ .Values.frontend.podTemplate.serviceAccountName }}
{{- if .Values.frontend.podTemplate.serviceAccount.create }}
serviceAccountName: {{ .Release.Name }}-frontend
{{- end }}
{{- if .Values.frontend.podTemplate.tolerations }}
tolerations: {{ .Values.frontend.podTemplate.tolerations | toYaml | nindent 8 }}
Expand Down Expand Up @@ -136,8 +136,8 @@ spec:
{{- if .Values.meta.podTemplate.labels }}
labels: {{ .Values.meta.podTemplate.labels | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.meta.podTemplate.serviceAccountName }}
serviceAccountName: {{ .Values.meta.podTemplate.serviceAccountName }}
{{- if .Values.meta.podTemplate.serviceAccount.create }}
serviceAccountName: {{ .Release.Name }}-meta
{{- end }}
{{- if .Values.meta.podTemplate.tolerations }}
tolerations: {{ .Values.meta.podTemplate.tolerations | toYaml | nindent 8 }}
Expand Down
10 changes: 10 additions & 0 deletions charts/greptimedb-cluster/templates/serviceaccount-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- if .Values.frontend.podTemplate.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Release.Name }}-frontend
namespace: {{ .Release.Namespace }}
{{- with .Values.frontend.podTemplate.serviceAccount.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
10 changes: 10 additions & 0 deletions charts/greptimedb-cluster/templates/serviceaccount-meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- if .Values.meta.podTemplate.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Release.Name }}-meta
namespace: {{ .Release.Namespace }}
{{- with .Values.meta.podTemplate.serviceAccount.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

0 comments on commit 9dd50c9

Please sign in to comment.