From ada7e000ec492384e985e3474999e8adcb2e4ff2 Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Fri, 26 Apr 2024 15:16:30 +0200 Subject: [PATCH] Fix init ignition --- internal/controller/testdata/ignition.go | 5 ++--- internal/ignition/default.go | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/internal/controller/testdata/ignition.go b/internal/controller/testdata/ignition.go index fcae13c..2c3879f 100644 --- a/internal/controller/testdata/ignition.go +++ b/internal/controller/testdata/ignition.go @@ -18,9 +18,8 @@ package testdata var ( DefaultIgnition = map[string]interface{}{ - "ignition": map[string]interface{}{ - "version": "3.4.0", - }, + "variant": "fcos", + "version": "1.3.0", "systemd": map[string]interface{}{ "units": []interface{}{ map[string]interface{}{ diff --git a/internal/ignition/default.go b/internal/ignition/default.go index 04e1b7c..934c6c7 100644 --- a/internal/ignition/default.go +++ b/internal/ignition/default.go @@ -30,8 +30,8 @@ type ContainerConfig struct { // defaultIgnitionTemplate is a Go template for the default Ignition configuration. var defaultIgnitionTemplate = ` -ignition: - version: "3.4.0" +variant: fcos +version: "1.3.0" systemd: units: - name: docker.service