Skip to content

Commit

Permalink
updated kube images import path (#134)
Browse files Browse the repository at this point in the history
Signed-off-by: Piyush Kumar <[email protected]>
  • Loading branch information
kpiyush17 authored May 13, 2024
1 parent fa9d97e commit adb3b53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/kube-images-load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ KUBE_VERSION=$1
ARCH=$(uname -m)
OS=$(uname)
ARCHIVE_NAME=go-containerregistry_"${OS}"_"${ARCH}".tar.gz
TEMP_DIR=/opt/kubeadm/temp
IMAGES_DIR=/opt/kubeadm/kube-images
TEMP_DIR=/opt/kubeadm-temp
IMAGES_DIR=/opt/kube-images
IMAGE_FILE=images.list

# create temp dir
Expand Down
2 changes: 1 addition & 1 deletion stages/pre.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func GetPreKubeadmImportCoreK8sImageStage() yip.Stage {
Name: "Run Load Kube Images",
Commands: []string{
fmt.Sprintf("chmod +x %s", filepath.Join(helperScriptPath, "import.sh")),
fmt.Sprintf("/bin/sh %s /opt/kubeadm/kube-images > /var/log/import-kube-images.log", filepath.Join(helperScriptPath, "import.sh")),
fmt.Sprintf("/bin/sh %s /opt/kube-images > /var/log/import-kube-images.log", filepath.Join(helperScriptPath, "import.sh")),
},
}
}
Expand Down

0 comments on commit adb3b53

Please sign in to comment.