Skip to content

Commit c899db8

Browse files
authored
Merge pull request kubernetes#3687 from mgarstecki/allowAdditionalLabels
Add additionalLabels chart value
2 parents b201c8d + 55d39f0 commit c899db8

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

charts/cluster-autoscaler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ name: cluster-autoscaler
1717
sources:
1818
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
1919
type: application
20-
version: 9.2.0
20+
version: 9.3.0

charts/cluster-autoscaler/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ Though enough for the majority of installations, the default PodSecurityPolicy _
325325

326326
| Key | Type | Default | Description |
327327
|-----|------|---------|-------------|
328+
| additionalLabels | object | `{}` | Labels to add to each object of the chart. |
328329
| affinity | object | `{}` | Affinity for pod assignment |
329330
| autoDiscovery.clusterName | string | `nil` | Enable autodiscovery for `cloudProvider=aws`, for groups matching `autoDiscovery.tags`. Enable autodiscovery for `cloudProvider=gce`, but no MIG tagging required. Enable autodiscovery for `cloudProvider=magnum`, for groups matching `autoDiscovery.roles`. |
330331
| autoDiscovery.roles | list | `["worker"]` | Magnum node group roles to match. |

charts/cluster-autoscaler/templates/_helpers.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ Return labels, including instance and name.
4646
{{ include "cluster-autoscaler.instance-name" . }}
4747
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
4848
helm.sh/chart: {{ include "cluster-autoscaler.chart" . | quote }}
49+
{{- if .Values.additionalLabels }}
50+
{{ toYaml .Values.additionalLabels }}
51+
{{- end -}}
4952
{{- end -}}
5053

5154
{{/*

charts/cluster-autoscaler/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ spec:
2626
{{- end }}
2727
labels:
2828
{{ include "cluster-autoscaler.instance-name" . | indent 8 }}
29+
{{- if .Values.additionalLabels }}
30+
{{ toYaml .values.additionalLabels | indent 8 }}
31+
{{- end }}
2932
{{- if .Values.podLabels }}
3033
{{ toYaml .Values.podLabels | indent 8 }}
3134
{{- end }}

charts/cluster-autoscaler/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ podDisruptionBudget:
211211
# podLabels -- Labels to add to each pod.
212212
podLabels: {}
213213

214+
# additionalLabels -- Labels to add to each object of the chart.
215+
additionalLabels: {}
216+
214217
# priorityClassName -- priorityClassName
215218
priorityClassName: ""
216219

0 commit comments

Comments
 (0)