From 9b2e3dd362b1d63444141cf4f3c619d31870e6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Cluseau?= Date: Wed, 11 Dec 2019 13:08:16 +0100 Subject: [PATCH] localconfig: add labels and annotations to host --- localconfig/host.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/localconfig/host.go b/localconfig/host.go index 9602554..17a2719 100644 --- a/localconfig/host.go +++ b/localconfig/host.go @@ -9,7 +9,8 @@ import ( type Host struct { Name string - Labels map[string]string + Labels map[string]string + Annotations map[string]string MACs []string IPs []string @@ -29,5 +30,8 @@ func (h *Host) WriteHashDataTo(w io.Writer) error { Initrd: h.Initrd, Versions: h.Versions, Config: h.Config, + + Labels: map[string]string{}, + Annotations: map[string]string{}, }) }