From 637294d4ee2472cb3a8a5977fd355b044b292220 Mon Sep 17 00:00:00 2001 From: calvix Date: Thu, 3 Mar 2022 17:59:07 +0100 Subject: [PATCH] add-machine-metadata (#15) --- CHANGELOG.md | 4 ++++ helm/cluster-aws/templates/_bastion.tpl | 4 ++++ helm/cluster-aws/templates/_control_plane.tpl | 3 +++ 3 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b248d58..1197a3d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Add labels to machine metadata to `AWSMachineTemplate` CRs. + ## [0.1.3] - 2022-03-02 ### Added diff --git a/helm/cluster-aws/templates/_bastion.tpl b/helm/cluster-aws/templates/_bastion.tpl index 08a2d5f5..52e2496f 100644 --- a/helm/cluster-aws/templates/_bastion.tpl +++ b/helm/cluster-aws/templates/_bastion.tpl @@ -56,6 +56,10 @@ metadata: namespace: {{ .Release.Namespace }} spec: template: + metadata: + labels: + cluster.x-k8s.io/role: bastion + {{- include "labels.common" $ | nindent 8 }} spec: additionalSecurityGroups: - filters: diff --git a/helm/cluster-aws/templates/_control_plane.tpl b/helm/cluster-aws/templates/_control_plane.tpl index 8866ed18..3909fae6 100644 --- a/helm/cluster-aws/templates/_control_plane.tpl +++ b/helm/cluster-aws/templates/_control_plane.tpl @@ -74,6 +74,9 @@ metadata: namespace: {{ $.Release.Namespace }} spec: template: + metadata: + labels: + {{- include "labels.common" $ | nindent 8 }} spec: ami: {} cloudInit: {}