Skip to content

Commit 9f81fe0

Browse files
OPS-6614: Refine linux headers installation for kubeadm on Ubuntu
1 parent 4a8e86f commit 9f81fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ provider-image:
490490

491491
IF [ "$K8S_DISTRIBUTION" = "kubeadm" ] || [ "$K8S_DISTRIBUTION" = "kubeadm-fips" ] || [ "$K8S_DISTRIBUTION" = "nodeadm" ]
492492
ARG BASE_K8S_VERSION=$K8S_VERSION
493-
IF [ "$OS_DISTRIBUTION" = "ubuntu" ] && [ "$ARCH" = "amd64" ] && ( [ "$K8S_DISTRIBUTION" = "kubeadm" ] || [ "$K8S_DISTRIBUTION" = "kubeadm-fips" ] )
493+
IF [ "$OS_DISTRIBUTION" = "ubuntu" ] && [ "$ARCH" = "amd64" ] && [ "$K8S_DISTRIBUTION" = "kubeadm" ]
494494
RUN kernel=$(ls /lib/modules | tail -n1) && if ! ls /usr/src | grep linux-headers-$kernel; then apt-get update && apt-get install -y "linux-headers-${kernel}"; fi
495495
END
496496
ELSE IF [ "$K8S_DISTRIBUTION" = "k3s" ]

0 commit comments

Comments
 (0)