From a098c0aa296679246e1dc5e006a8fa32baf17de6 Mon Sep 17 00:00:00 2001 From: MichaelFisher1997 Date: Mon, 2 Mar 2026 01:27:44 +0000 Subject: [PATCH] fix: avoid sudo env loss for kube-vip image reference --- nixos/kubeadm/modules/k8s-common.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/kubeadm/modules/k8s-common.nix b/nixos/kubeadm/modules/k8s-common.nix index 5d463ed..557207c 100644 --- a/nixos/kubeadm/modules/k8s-common.nix +++ b/nixos/kubeadm/modules/k8s-common.nix @@ -128,9 +128,9 @@ in echo "Using kube-vip interface: $iface" mkdir -p /etc/kubernetes/manifests - ctr image pull "$KUBE_VIP_IMAGE" + ctr image pull "${kubeVipImage}" - ctr run --rm --net-host "$KUBE_VIP_IMAGE" kube-vip /kube-vip manifest pod \ + ctr run --rm --net-host "${kubeVipImage}" kube-vip /kube-vip manifest pod \ --interface "$iface" \ --address "$vip" \ --controlplane \ @@ -184,8 +184,8 @@ in vip="$subnet_prefix.$suffix" mkdir -p /etc/kubernetes/manifests - ctr image pull "$KUBE_VIP_IMAGE" - ctr run --rm --net-host "$KUBE_VIP_IMAGE" kube-vip /kube-vip manifest pod \ + ctr image pull "${kubeVipImage}" + ctr run --rm --net-host "${kubeVipImage}" kube-vip /kube-vip manifest pod \ --interface "$iface" \ --address "$vip" \ --controlplane \