File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -521,7 +521,11 @@ download:
521521 type : {{ .download.cni.type | toJson }}
522522 # ========== cni ==========
523523 # cni_plugins binary
524+ {{- if .download.cni.type | empty | not }}
524525 cni_plugins_version : {{ .download.cni.cni_plugins_version| default (list "v1.9.1") | toJson }}
526+ {{- else }}
527+ cni_plugins_version : []
528+ {{- end }}
525529 # ========== cni: calico ==========
526530 # calicoctl binary
527531{{- if .download.cni.type | has "calico" }}
Original file line number Diff line number Diff line change 1919- name : Package | Export artifact
2020 command : |
2121 # package binary directory
22- cd {{ .artifact_dir }}/kubekey && tar -czvf {{ .artifact_dir }}/kubekey-artifact.tgz . && rm -rf {{ .artifact_dir }}/kubekey
22+ tar -czvf {{ .artifact_dir }}/kubekey-artifact.tgz -C {{ .artifact_dir }}/kubekey . && rm -rf {{ .artifact_dir }}/kubekey
Original file line number Diff line number Diff line change 114114
115115echo "Exporting artifact with kk..."
116116./kk artifact export -c "\$ CONFIG_FILE" --workdir prepare --set download.tools.kubekey=$DOWNLOAD_PREFIX /releases/download/$VERSION /kubekey-$VERSION -linux-"{{ \"{{ .arch }}\" }}".tar.gz --set artifact_dir=prepare/${ARTIFACT_DIR}
117+ if [ \$ ? -ne 0 ]; then
118+ echo "Failed to export artifact with kk. Please check the command output above."
119+ exit 1
120+ fi
117121
118122if [ -f "web-installer.tgz" ]; then
119123 echo "Extracting web-installer.tgz to ${ARTIFACT_DIR} /web-installer/ ..."
You can’t perform that action at this time.
0 commit comments