-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50fa187
commit 05c3993
Showing
8 changed files
with
1,461 additions
and
18 deletions.
There are no files selected for viewing
1,380 changes: 1,380 additions & 0 deletions
1,380
templates/test/ci/cluster-template-prow-ci-version-windows.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
templates/test/ci/prow-ci-version-windows/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: default | ||
resources: | ||
- ../prow-windows | ||
patchesStrategicMerge: | ||
- patches/windows-image-update.yaml | ||
- ../patches/control-plane-ci-version.yaml | ||
- ../patches/controller-manager.yaml | ||
- ../prow-ci-version/patches/machine-deployment-ci-version.yaml | ||
patchesJson6902: | ||
- target: | ||
group: bootstrap.cluster.x-k8s.io | ||
version: v1alpha4 | ||
kind: KubeadmConfigTemplate | ||
name: ${CLUSTER_NAME}-md-win | ||
namespace: default | ||
path: patches/machine-deployment-ci-version.yaml | ||
|
28 changes: 28 additions & 0 deletions
28
templates/test/ci/prow-ci-version-windows/patches/machine-deployment-ci-version.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
- op: add | ||
path: /spec/template/spec/files/- | ||
value: | ||
content: | | ||
Stop-Service kubelet -Force | ||
$$CI_VERSION="${CI_VERSION}" | ||
if($$CI_VERSION -ne "") | ||
{ | ||
$$binaries=@("kubeadm", "kubectl", "kubelet", "kube-proxy") | ||
$$ci_url="https://storage.googleapis.com/kubernetes-release-dev/ci/$$CI_VERSION/bin/windows/amd64" | ||
foreach ( $$binary in $$binaries ) | ||
{ | ||
echo "downloading binary: $$ci_url/$$binary.exe" | ||
curl.exe --retry 10 --retry-delay 5 "$$ci_url/$$binary.exe" --output "c:/k/$$binary.exe" | ||
} | ||
} | ||
kubeadm.exe version -o=short | ||
kubectl.exe version --client=true --short=true | ||
kubelet.exe --version | ||
#kubeproxy.exe --version | ||
path: C:/replace-k8s-binaries.ps1 | ||
permissions: "0744" | ||
- op: add | ||
path: /spec/template/spec/preKubeadmCommands/- | ||
value: | ||
powershell C:/replace-k8s-binaries.ps1 |
16 changes: 16 additions & 0 deletions
16
templates/test/ci/prow-ci-version-windows/patches/windows-image-update.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 | ||
kind: AzureMachineTemplate | ||
metadata: | ||
name: "${CLUSTER_NAME}-md-win" | ||
spec: | ||
template: | ||
spec: | ||
image: | ||
# we use the 1.18.13 image as a workaround there is no published marketplace image for k8s CI versions. | ||
# 1.18.13 binaries and images will get replaced to the desired version by the script above. | ||
marketplace: | ||
publisher: cncf-upstream | ||
offer: capi-windows | ||
sku: k8s-1dot18dot13-windows-2019 | ||
version: "2020.12.11" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters