From 022d5ca7d1f641498010d9345469d5038946d41a Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Thu, 5 Sep 2024 12:14:26 -0700 Subject: [PATCH] fix kubeadm-fips Signed-off-by: Nianyu Shen --- Earthfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index 5967f7a..ba3dd78 100644 --- a/Earthfile +++ b/Earthfile @@ -160,7 +160,7 @@ build-provider-images: WORKDIR /workdir COPY k8s_version.json k8s_version.json ENV K8S_DISTRIBUTION=$K8S_DISTRIBUTION - RUN jq -r ".$K8S_DISTRIBUTION[]" k8s_version.json > k8s_version.txt + RUN jq -r --arg key "$K8S_DISTRIBUTION" 'if .[$key] then .[$key][] else empty end' k8s_version.json > k8s_version.txt FOR version IN $(cat k8s_version.txt) BUILD +$TARGET --K8S_VERSION=$version END