Merge "Allow labelling of BMHs"

This commit is contained in:
Zuul 2021-06-28 16:34:24 +00:00 committed by Gerrit Code Review
commit 9caf5ed4f6
2 changed files with 5 additions and 0 deletions

View File

@ -47,7 +47,10 @@ template: |
kind: BareMetalHost
metadata:
annotations:
{{- if $host.labels }}
labels:
{{ toYaml $host.labels | indent 4 }}
{{- end }}
name: {{ $hostName }}
spec:
online: false

View File

@ -23,6 +23,8 @@ hosts:
oam: 52:54:00:9b:27:4c
pxe: 52:54:00:b6:ed:31
hardwareProfile: default # defined in the hostgenerator-m3 function
labels: # optional
airshipit.org/example-label: "label-bmh-like-this"
node02:
bootMode: legacy
macAddress: 52:54:00:b6:ed:02