Skip to content

Commit

Permalink
disable swap for kubeadm/kubeadm-fips
Browse files Browse the repository at this point in the history
  • Loading branch information
kpiyush17 committed Oct 14, 2023
1 parent 6aa6fd5 commit a36a444
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ provider-image:
ARG IMAGE_PATH=$IMAGE_REGISTRY/$IMAGE_REPO:$K8S_DISTRIBUTION-$K8S_VERSION-$PE_VERSION-$CUSTOM_TAG

IF [ "$K8S_DISTRIBUTION" = "kubeadm" ] || [ "$K8S_DISTRIBUTION" = "kubeadm-fips" ]
RUN swapoff -a
ARG BASE_K8S_VERSION=$K8S_VERSION
ELSE IF [ "$K8S_DISTRIBUTION" = "k3s" ]
ARG K8S_DISTRIBUTION_TAG=$K3S_FLAVOR_TAG
Expand Down

0 comments on commit a36a444

Please sign in to comment.