Skip to content

Commit

Permalink
Merge pull request #1786 from CecileRobertMichon/ci-entrypoint-windows
Browse files Browse the repository at this point in the history
Add windows support to ci-entrypoint.sh
  • Loading branch information
k8s-ci-robot committed Oct 26, 2021
2 parents 5bdf09c + 5a89a0a commit 505ea5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/book/src/developers/development.md
Expand Up @@ -504,6 +504,7 @@ You can optionally set the following variables:
| `CI_VERSION` | Provide a custom CI version of Kubernetes. By default, the latest master commit will be used. |
| `TEST_CCM` | Build a cluster that uses custom versions of the Azure cloud-provider cloud-controller-manager and node-controller-manager images |
| `EXP_MACHINE_POOL` | Use [Machine Pool](../topics/machinepools.md) for worker machines. |
| `TEST_WINDOWS` | Build a cluster that has Windows worker nodes. |
| `REGISTRY` | Registry to push any custom k8s images or cloud provider images built. |
| `CLUSTER_TEMPLATE` | Use a custom cluster template. By default, the script will choose the appropriate cluster template based on existing environment variabes. |

Expand Down
6 changes: 6 additions & 0 deletions scripts/ci-entrypoint.sh
Expand Up @@ -105,6 +105,12 @@ select_cluster_template() {
export CLUSTER_TEMPLATE="${CLUSTER_TEMPLATE/custom-builds/custom-builds-machine-pool}"
fi
fi

# this requires k8s 1.22+
if [[ -n "${TEST_WINDOWS:-}" ]]; then
export WINDOWS_WORKER_MACHINE_COUNT="${WINDOWS_WORKER_MACHINE_COUNT:-2}"
export K8S_FEATURE_GATES="WindowsHostProcessContainers=true"
fi
}

create_cluster() {
Expand Down

0 comments on commit 505ea5f

Please sign in to comment.