Skip to content

Commit 8566225

Browse files
Added volumes, volumeMounts and additional labels to the chart (#251)
1 parent 166f5f5 commit 8566225

File tree

5 files changed

+34
-5
lines changed

5 files changed

+34
-5
lines changed

charts/metrics-agent/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ type: application
1414

1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
17-
version: 2.11.22
17+
version: 2.11.23
1818

1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application.
21-
appVersion: 2.11.22
21+
appVersion: 2.11.23

charts/metrics-agent/templates/_helpers.tpl

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ helm.sh/chart: {{ include "metrics-agent.chart" . }}
4141
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4242
{{- end }}
4343
app.kubernetes.io/managed-by: {{ .Release.Service }}
44+
{{- if .Values.additionalLabels }}
45+
{{ toYaml .Values.additionalLabels }}
46+
{{- end }}
4447
{{- end -}}
4548

4649
{{/*

charts/metrics-agent/templates/deployment.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ spec:
1212
template:
1313
metadata:
1414
labels:
15-
{{- include "metrics-agent.selectorLabels" . | nindent 8 }}
15+
{{- include "metrics-agent.labels" . | nindent 8 }}
16+
{{- if .Values.podLabels }}{{ toYaml .Values.podLabels | nindent 8 }}{{- end }}
1617
spec:
1718
{{- with .Values.imagePullSecrets }}
1819
imagePullSecrets:
@@ -52,6 +53,14 @@ spec:
5253
{{- toYaml .Values.resources | nindent 12 }}
5354
livenessProbe:
5455
{{- toYaml .Values.livenessProbe | nindent 12 }}
56+
{{- with .Values.volumeMounts }}
57+
volumeMounts:
58+
{{- toYaml . | nindent 12 }}
59+
{{- end }}
60+
{{- with .Values.volumes }}
61+
volumes:
62+
{{- toYaml . | nindent 8 }}
63+
{{- end }}
5564
{{- with .Values.nodeSelector }}
5665
nodeSelector:
5766
{{- toYaml . | nindent 8 }}

charts/metrics-agent/values.yaml

+18-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pollInterval: 180
2424

2525
image:
2626
name: cloudability/metrics-agent
27-
tag: 2.11.22
27+
tag: 2.11.23
2828
pullPolicy: Always
2929

3030
imagePullSecrets: []
@@ -73,5 +73,22 @@ openShift: false
7373
seccompProfile:
7474
type: RuntimeDefault
7575

76+
volumes: []
77+
# - name: foo
78+
# secret:
79+
# secretName: mysecret
80+
# optional: false
81+
82+
volumeMounts: []
83+
# - name: foo
84+
# mountPath: "/etc/foo"
85+
# readOnly: true
86+
87+
# Extra labels to add to the pod only.
88+
podLabels: {}
89+
90+
# Extra labels to add to all resources, including pods.
91+
additionalLabels: {}
92+
7693
drop:
7794
- ALL

version/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package version
22

33
// VERSION is the current version of the agent
4-
var VERSION = "2.11.22"
4+
var VERSION = "2.11.23"

0 commit comments

Comments
 (0)