Skip to content

Commit

Permalink
feat(helm): additional labels
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault committed Jan 10, 2025
1 parent 603712c commit 5caa129
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/greptimedb-cluster/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/component: cluster
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: greptimedb-cluster
{{- with .Values.additionalLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}

{{/*
Expand Down
3 changes: 3 additions & 0 deletions charts/greptimedb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ image:
# -- The image pull secrets
pullSecrets: []

# -- additional labels to add to all resources
additionalLabels: {}

initializer:
# -- Initializer image registry
registry: docker.io
Expand Down
5 changes: 4 additions & 1 deletion charts/greptimedb-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/component: operator
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/parrt-of: greptimedb-operator
app.kubernetes.io/part-of: greptimedb-operator
{{- with .Values.additionalLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}

{{/*
Expand Down
3 changes: 3 additions & 0 deletions charts/greptimedb-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ image:
# -- The image pull secrets
pullSecrets: []

# -- additional labels to add to all resources
additionalLabels: {}

serviceAccount:
# -- Specifies whether a service account should be created
create: true
Expand Down
3 changes: 3 additions & 0 deletions charts/greptimedb-standalone/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/component: standalone
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: greptimedb-standalone
{{- with .Values.additionalLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}

{{/*
Expand Down
3 changes: 3 additions & 0 deletions charts/greptimedb-standalone/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ nameOverride: ""
# -- Provide a name to substitute for the full names of resources
fullnameOverride: ""

# -- additional labels to add to all resources
additionalLabels: {}

serviceAccount:
# -- Specifies whether a service account should be created
create: true
Expand Down

0 comments on commit 5caa129

Please sign in to comment.