Skip to content

Commit

Permalink
Additinoal labels for all resources (v1.7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
leventyalcin committed Nov 14, 2024
1 parent 56fb7af commit 8df38d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/longhorn/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
{{- with .Values.global.additionalLabels }}
{{- toYaml . | nindent 0 }}
{{- end }}
{{- end -}}


Expand Down
2 changes: 2 additions & 0 deletions charts/longhorn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
global:
# -- Addtional labels for all the resources
additionalLabels: {}
# -- Toleration for nodes allowed to run user-deployed components such as Longhorn Manager, Longhorn UI, and Longhorn Driver Deployer.
tolerations: []
# -- Node selector for nodes allowed to run user-deployed components such as Longhorn Manager, Longhorn UI, and Longhorn Driver Deployer.
Expand Down

0 comments on commit 8df38d5

Please sign in to comment.