You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* etcd download: use arch variable instead of hard-coded amd64
Replace hard-coded linux-amd64 in etcd tarball download URL and output filename with linux- to support both amd64 and arm64 architectures.
* container-selinux: install from distro repos instead of CentOS 7 mirror
Remove hard-coded CentOS 7 x86_64 RPM URL for container-selinux and install directly from the system's configured repositories, which handles architecture and version automatically.
* build_name: fix dead-code fallback default
Check whether parameter is empty before constructing build_name, so the fallback default setup--.iso is actually reachable.
* CNI download: fail on HTTP errors for both URL attempts
Use curl -f on both primary and legacy CNI download URLs and exit with a clear error if neither succeeds, instead of only checking for 404 on the first attempt.
* temp directory: use mktemp and trap for cleanup
Replace fixed /tmp/iso with mktemp -d to avoid collisions between concurrent runs, and register a trap EXIT to ensure cleanup on failure or early exit.
curl -sSL "https://raw.githubusercontent.com/kubernetes/kubernetes/${RELEASE}/build/debs/kubelet.service"| sed "s:/usr/bin:/opt/bin:g">${kubelet_service_file}
107
+
curl -sSL "https://raw.githubusercontent.com/kubernetes/kubernetes/${RELEASE}/build/debs/kubelet.service"| sed "s:/usr/bin:/opt/bin:g">"${kubelet_service_file}"
102
108
else
103
-
curl -sSL "https://raw.githubusercontent.com/shapeblue/cloudstack-nonoss/main/cks/kubelet.service"| sed "s:/usr/bin:/opt/bin:g">${kubelet_service_file}
109
+
curl -sSL "https://raw.githubusercontent.com/shapeblue/cloudstack-nonoss/main/cks/kubelet.service"| sed "s:/usr/bin:/opt/bin:g">"${kubelet_service_file}"
curl -sSL "https://raw.githubusercontent.com/kubernetes/kubernetes/${RELEASE}/build/debs/10-kubeadm.conf"| sed "s:/usr/bin:/opt/bin:g">${kubeadm_conf_file}
116
+
curl -sSL "https://raw.githubusercontent.com/kubernetes/kubernetes/${RELEASE}/build/debs/10-kubeadm.conf"| sed "s:/usr/bin:/opt/bin:g">"${kubeadm_conf_file}"
111
117
else
112
-
curl -sSL "https://raw.githubusercontent.com/shapeblue/cloudstack-nonoss/main/cks/10-kubeadm.conf"| sed "s:/usr/bin:/opt/bin:g">${kubeadm_conf_file}
118
+
curl -sSL "https://raw.githubusercontent.com/shapeblue/cloudstack-nonoss/main/cks/10-kubeadm.conf"| sed "s:/usr/bin:/opt/bin:g">"${kubeadm_conf_file}"
0 commit comments