diff --git a/Earthfile b/Earthfile index a9e26d8..2328444 100644 --- a/Earthfile +++ b/Earthfile @@ -1,5 +1,8 @@ VERSION 0.6 -ARG BASE_IMAGE=quay.io/kairos/core-ubuntu:latest + +# TODO: Find a way to automatically bump this +ARG BASE_IMAGE=quay.io/kairos/ubuntu:23.10-core-amd64-generic-v2.5.0 + ARG OSBUILDER_IMAGE=quay.io/kairos/osbuilder-tools # renovate: datasource=docker depName=golang ARG GO_VERSION=1.20 diff --git a/tests/encryption_test.go b/tests/encryption_test.go index 0793d83..f2bb792 100644 --- a/tests/encryption_test.go +++ b/tests/encryption_test.go @@ -363,29 +363,9 @@ func getChallengerServerCert() string { } func createConfigWithCert(server, cert string) client.Config { - return client.Config{ - Kcrypt: struct { - Challenger struct { - Server string "yaml:\"challenger_server,omitempty\"" - NVIndex string "yaml:\"nv_index,omitempty\"" - CIndex string "yaml:\"c_index,omitempty\"" - TPMDevice string "yaml:\"tpm_device,omitempty\"" - Certificate string "yaml:\"certificate,omitempty\"" - } - }{ - Challenger: struct { - Server string "yaml:\"challenger_server,omitempty\"" - NVIndex string "yaml:\"nv_index,omitempty\"" - CIndex string "yaml:\"c_index,omitempty\"" - TPMDevice string "yaml:\"tpm_device,omitempty\"" - Certificate string "yaml:\"certificate,omitempty\"" - }{ - Server: server, - NVIndex: "", - CIndex: "", - TPMDevice: "", - Certificate: cert, - }, - }, - } + c := client.Config{} + c.Kcrypt.Challenger.Server = server + c.Kcrypt.Challenger.Certificate = cert + + return c }