Skip to content

Commit

Permalink
Add windows templates to ci-entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon committed Oct 26, 2021
1 parent 5bdf09c commit 5a89a0a
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 5a89a0a

Please sign in to comment.