Skip to content

Commit

Permalink
Merge pull request #25 from elastiflow/add-common-labels
Browse files Browse the repository at this point in the history
Add common labels
  • Loading branch information
kgrubb authored Jul 2, 2024
2 parents 5dfa43c + d931a71 commit fc15e53
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/netobserv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: netobserv
description: ElastiFlow NetObserv
type: application
version: 0.3.0
version: 0.3.1
appVersion: 7.0.1

keywords:
Expand Down
4 changes: 4 additions & 0 deletions charts/netobserv/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ helm.sh/chart: {{ include "netobserv.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{ include "netobserv.selectorLabels" . }}
{{- range $k, $v := .Values.commonLabels }}
{{ $k }}: {{ $v | quote }}
{{- end }}
{{- end }}

{{/*
Expand Down
2 changes: 1 addition & 1 deletion charts/netobserv/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
annotations: {{ .Values.service.annotations | toYaml | nindent 4 }}
spec:
type: {{ .Values.service.type }}
{{- if and (eq .Values.service.type "LoadBalancer") .Values.service.externalTrafficPolicy }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports: {{ .Values.service.ports | toYaml | nindent 4 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/netobserv/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

# global common labels, applied to all ressources
commonLabels: {}

podAnnotations: {}
podLabels: {}

Expand Down

0 comments on commit fc15e53

Please sign in to comment.