Merge pull request 'fix: avoid sudo env loss for kube-vip image reference' (#77) from stage into master
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 20m59s

Reviewed-on: #77
This commit was merged in pull request #77.
This commit is contained in:
2026-03-02 01:32:53 +00:00

View File

@@ -128,9 +128,9 @@ in
echo "Using kube-vip interface: $iface" echo "Using kube-vip interface: $iface"
mkdir -p /etc/kubernetes/manifests 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" \ --interface "$iface" \
--address "$vip" \ --address "$vip" \
--controlplane \ --controlplane \
@@ -184,8 +184,8 @@ in
vip="$subnet_prefix.$suffix" vip="$subnet_prefix.$suffix"
mkdir -p /etc/kubernetes/manifests 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" \ --interface "$iface" \
--address "$vip" \ --address "$vip" \
--controlplane \ --controlplane \