Skip to content

Commit bc2d7bb

Browse files
authored
feat(helm): Kubernetes labels (#119)
Signed-off-by: Nicolas Lamirault <[email protected]>
1 parent d4758e9 commit bc2d7bb

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

charts/wasmcloud-operator/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type: application
77
# This is the chart version. This version number should be incremented each time you make changes
88
# to the chart and its templates, including the app version.
99
# Versions are expected to follow Semantic Versioning (https://semver.org/)
10-
version: 0.1.5
10+
version: 0.1.6
1111

1212
# This is the version number of the application being deployed. This version number should be
1313
# incremented each time you make changes to the application. Versions are not expected to

charts/wasmcloud-operator/templates/_helpers.tpl

+5
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,15 @@ Common labels
4343
{{- define "wasmcloud-operator.labels" -}}
4444
helm.sh/chart: {{ include "wasmcloud-operator.chart" . }}
4545
{{ include "wasmcloud-operator.selectorLabels" . }}
46+
app.kubernetes.io/component: operator
4647
{{- if .Chart.AppVersion }}
4748
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4849
{{- end }}
4950
app.kubernetes.io/managed-by: {{ .Release.Service }}
51+
app.kubernetes.io/part-of: wasmcloud-operator
52+
{{- with .Values.additionalLabels }}
53+
{{ . | toYaml }}
54+
{{- end }}
5055
{{- end }}
5156
5257
{{/*

charts/wasmcloud-operator/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ imagePullSecrets: []
1212
nameOverride: ""
1313
fullnameOverride: ""
1414

15+
additionalLabels: {}
16+
# app: wasmcloud-operator
17+
1518
serviceAccount:
1619
# Specifies whether a service account should be created
1720
create: true

0 commit comments

Comments
 (0)