Skip to content

Commit 87f8626

Browse files
authored
feat: Add podLabels for opencost's pods (#45)
* feat: Add podLabels for opencost's pods Signed-off-by: Rafał Boniecki <rafal@boniecki.cc> * Add default podLabels to values.yaml Signed-off-by: Rafał Boniecki <rafal@boniecki.cc> * Version bump Signed-off-by: Rafał Boniecki <rafal@boniecki.cc> --------- Signed-off-by: Rafał Boniecki <rafal@boniecki.cc>
1 parent 1818ff3 commit 87f8626

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

charts/opencost/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords:
99
- kubecost
1010
- opencost
1111
- monitoring
12-
version: 1.8.0
12+
version: 1.8.1
1313
maintainers:
1414
- name: mattray
1515
url: https://mattray.dev

charts/opencost/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ spec:
2323
metadata:
2424
labels:
2525
{{- include "opencost.selectorLabels" . | nindent 8 }}
26+
{{- if .Values.podLabels }}
27+
{{- toYaml .Values.podLabels | nindent 8 }}
28+
{{- end }}
2629
{{- if .Values.podAnnotations }}
2730
annotations:
2831
{{- toYaml .Values.podAnnotations | nindent 8 }}

charts/opencost/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ serviceAccount:
1212
annotations: {}
1313
# -- Annotations to add to the OpenCost Pod
1414
podAnnotations: {}
15+
# -- Labels to add to the OpenCost Pod
16+
podLabels: {}
1517

1618
# -- Holds pod-level security attributes and common container settings
1719
podSecurityContext: {}

0 commit comments

Comments
 (0)