Skip to content

Commit

Permalink
Adding support for user specified labels for a MachinePool
Browse files Browse the repository at this point in the history
Signed-off-by: Archisman <archisman@obmondo.com>
  • Loading branch information
Archisman committed Sep 4, 2024
1 parent 8e027ee commit 36529fc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ spec:
clusterName: {{ $.Values.global.clusterName }}
replicas: {{ $machinePool.replicas }}
template:
metadata:
labels:
machine-pool: {{ printf "%s-%s" $.Values.global.clusterName $machinePool.name }}
{{- if $machinePool.labels }}
{{- toYaml $machinePool.labels | nindent 8 }}
{{- end }}
spec:
bootstrap:
configRef:
Expand Down

0 comments on commit 36529fc

Please sign in to comment.