Skip to content

Commit 0be8d24

Browse files
committed
Build windows k8s components
1 parent e06c3d4 commit 0be8d24

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

scripts/ci-build-kubernetes.sh

+14-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ source "${REPO_ROOT}/hack/parse-prow-creds.sh"
3838
: "${JOB_NAME:?Environment variable empty or not defined.}"
3939

4040
declare -a BINARIES=("kubeadm" "kubectl" "kubelet")
41+
declare -a WINDOWS_BINARIES=("kubeadm" "kubectl" "kubelet" "kube-proxy")
4142
declare -a IMAGES=("kube-apiserver" "kube-controller-manager" "kube-proxy" "kube-scheduler")
4243

4344
setup() {
@@ -97,7 +98,19 @@ main() {
9798
for BINARY in "${BINARIES[@]}"; do
9899
az storage blob upload --container-name "${JOB_NAME}" --file "${KUBE_ROOT}/_output/dockerized/bin/linux/amd64/${BINARY}" --name "${KUBE_GIT_VERSION}/bin/linux/amd64/${BINARY}"
99100
done
100-
fi
101+
102+
if [[ "${WINDOWS:-}" == "true" ]]; then
103+
echo "Building Kubernetes Windows binaries"
104+
105+
for BINARY in "${WINDOWS_BINARIES[@]}"; do
106+
${KUBE_ROOT}/build/run.sh make WHAT=cmd/${BINARY} KUBE_BUILD_PLATFORMS=windows/amd64 KUBE_VERBOSE=0
107+
done
108+
109+
for BINARY in "${WINDOWS_BINARIES[@]}"; do
110+
az storage blob upload --container-name "${JOB_NAME}" --file "${KUBE_ROOT}/_output/dockerized/bin/windows/amd64/${BINARY}.exe" --name "${KUBE_GIT_VERSION}/bin/windows/amd64/${BINARY}.exe"
111+
done
112+
fi
113+
fi
101114
}
102115

103116
# can_reuse_artifacts returns true if there exists Kubernetes artifacts built from a PR that we can reuse

0 commit comments

Comments
 (0)