From bd57451f66b8c908ce75ed18eb30447ef1216021 Mon Sep 17 00:00:00 2001 From: Santhosh Date: Mon, 18 Dec 2023 18:41:44 +0530 Subject: [PATCH] remove system.uri macro options --- .arg.template | 3 ++- Earthfile | 4 ++++ earthly.sh | 10 ++-------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.arg.template b/.arg.template index 4b7acb3..88e0430 100644 --- a/.arg.template +++ b/.arg.template @@ -9,4 +9,5 @@ ARCH=amd64 HTTPS_PROXY= HTTP_PROXY= PROXY_CERT_PATH= -UPDATE_KERNEL=false \ No newline at end of file +UPDATE_KERNEL=false +K8S_VERSION=v1.27.2 \ No newline at end of file diff --git a/Earthfile b/Earthfile index 65a8c64..1ed5de0 100644 --- a/Earthfile +++ b/Earthfile @@ -16,6 +16,7 @@ ARG SPECTRO_LUET_VERSION=v1.2.0 ARG KAIROS_VERSION=v2.4.3 ARG K3S_FLAVOR_TAG=k3s1 ARG RKE2_FLAVOR_TAG=rke2r1 +ARG K8S_VERSION=v1.27.5 ARG BASE_IMAGE_URL=quay.io/kairos ARG OSBUILDER_VERSION=v0.7.11 ARG OSBUILDER_IMAGE=quay.io/kairos/osbuilder-tools:$OSBUILDER_VERSION @@ -77,6 +78,9 @@ build-provider-images: BUILD +provider-image --K8S_VERSION=1.28.2 +build-provider-image: + ARG K8S_VERSION + BUILD +provider-image --K8S_VERSION=$K8S_VERSION build-provider-images-fips: IF [ "$K8S_DISTRIBUTION" = "kubeadm-fips" ] diff --git a/earthly.sh b/earthly.sh index ae61db3..d8f0d77 100755 --- a/earthly.sh +++ b/earthly.sh @@ -80,12 +80,6 @@ echo -e ' #force: true # Continue even if there are pods that do not declare echo -e ' #disableEviction: false # Force drain to use delete, even if eviction is supported. This will bypass checking PodDisruptionBudgets, use with caution' echo -e ' #skipWaitForDeleteTimeout: 60 # If pod DeletionTimestamp older than N seconds, skip waiting for the pod. Seconds must be greater than 0 to skip.' echo -e 'options:' -echo -e ' system.uri: "{{ .spectro.pack.edge-native-byoi.options.system.registry }}/{{ .spectro.pack.edge-native-byoi.options.system.repo }}:{{ .spectro.pack.edge-native-byoi.options.system.k8sDistribution }}-{{ .spectro.system.kubernetes.version }}-{{ .spectro.pack.edge-native-byoi.options.system.peVersion }}-{{ .spectro.pack.edge-native-byoi.options.system.customTag }}"' +echo -e ' system.uri: "$IMAGE_REGISTRY/$IMAGE_REPO:$K8S_DISTRIBUTION-$K8S_VERSION-$PE_VERSION-$CUSTOM_TAG"' echo -e '\n' -echo -e " system.registry: $IMAGE_REGISTRY" -echo -e " system.repo: $IMAGE_REPO" -echo -e " system.k8sDistribution: $K8S_DISTRIBUTION" -echo -e " system.osName: $OS_DISTRIBUTION" -echo -e " system.peVersion: $PE_VERSION" -echo -e " system.customTag: $CUSTOM_TAG" -echo -e " system.osVersion: $OS_VERSION" +