Skip to content

Commit 663e19b

Browse files
az capi readme and minor updates (#342)
* az capi readme and minor updates Signed-off-by: Mark Rossetti <marosset@microsoft.com> * Update capz/run-capz-e2e.sh Co-authored-by: James Sturtevant <jsturtevant@gmail.com> Signed-off-by: Mark Rossetti <marosset@microsoft.com> Co-authored-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 96d3e35 commit 663e19b

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

capz/readme.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
These scripts and templates are used with [cluster-api-provider-azure](https://github.com/kubernetes-sigs/cluster-api-provider-azure) and [azure cli extension](https://github.com/Azure/azure-capi-cli-extension).
44

55
## Running the scripts
6+
67
To run these scripts locally, clone [CAPZ](https://github.com/kubernetes-sigs/cluster-api-provider-azure) and set the following environment variables (use Linux, macos, or WSL2):
78

89
```bash
@@ -13,6 +14,7 @@ export AZURE_TENANT_ID=<tenantid>
1314
export CAPZ_DIR="$HOME/<path-to-capz>/cluster-api-provider-azure
1415
1516
# optional for ability to use your own ssh key (otherwise it generates one)
17+
# NOTE: Azure does not support ed25519 encrypted SSH keys!
1618
export AZURE_SSH_PUBLIC_KEY_FILE="$HOME/.ssh/id_rsa.pub"
1719
```
1820
@@ -22,7 +24,10 @@ export AZURE_SSH_PUBLIC_KEY_FILE="$HOME/.ssh/id_rsa.pub"
2224
| ------------- | ------------ |
2325
| `SKIP_CREATE` | Don't create a cluster. Must set `CLUSTER_NAME` and have current a workload cluster kubeconfig file with name `./"${CLUSTER_NAME}".kubeconfig` |
2426
| `SKIP_TEST` | Only creates the cluster, will not run tests |
25-
| `KUBERNETES_VERSION` | valid values are `latest` (default) and `latest-1.x` where x is valid kubernetes minor version such as `latest-1.24` |
27+
| `SKIP_CLEANUP` | Don't delete the cluster / resource group deletion |
28+
| `RUN_SERIAL_TESTS` | If set to `true` then serial slow tests will be run with default ginkgo settings |
29+
| `KUBERNETES_VERSION` | Valid values are `latest` (default) and `latest-1.x` where x is valid kubernetes minor version such as `latest-1.24` |
30+
| `AZURE_LOCATION` | The azure region to deploy resources into |
2631
2732
## GMSA support
2833

capz/run-capz-e2e.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")
88
export CAPZ_DIR="${CAPZ_DIR:-"${GOPATH}/src/sigs.k8s.io/cluster-api-provider-azure"}"
99
: "${CAPZ_DIR:?Environment variable empty or not defined.}"
1010
if [[ ! -d $CAPZ_DIR ]]; then
11-
log "Must have capz repo present"
11+
echo "Must have capz repo present"
1212
fi
1313

1414
main() {
@@ -17,7 +17,7 @@ main() {
1717
export CONTROL_PLANE_MACHINE_COUNT="${AZURE_CONTROL_PLANE_MACHINE_COUNT:-"1"}"
1818
export WINDOWS_WORKER_MACHINE_COUNT="${WINDOWS_WORKER_MACHINE_COUNT:-"2"}"
1919
export WINDOWS_SERVER_VERSION="${WINDOWS_SERVER_VERSION:-"windows-2019"}"
20-
export WINDOWS_CONTAINERD_URL="${WINDOWS_CONTAINERD_URL:-"https://github.com/containerd/containerd/releases/download/v1.6.4/containerd-1.6.4-windows-amd64.tar.gz"}"
20+
export WINDOWS_CONTAINERD_URL="${WINDOWS_CONTAINERD_URL:-"https://github.com/containerd/containerd/releases/download/v1.6.8/containerd-1.6.8-windows-amd64.tar.gz"}"
2121
export GMSA="${GMSA:-""}"
2222

2323
# other config
@@ -136,9 +136,15 @@ run_e2e_test() {
136136
curl -L -o /tmp/kubernetes-test-linux-amd64.tar.gz https://storage.googleapis.com/k8s-release-dev/ci/"${CI_VERSION}"/kubernetes-test-linux-amd64.tar.gz
137137
tar -xzvf /tmp/kubernetes-test-linux-amd64.tar.gz
138138

139-
export GINKGO_FOCUS=${GINKGO_FOCUS:-"\[Conformance\]|\[NodeConformance\]|\[sig-windows\]|\[sig-apps\].CronJob|\[sig-api-machinery\].ResourceQuota|\[sig-scheduling\].SchedulerPreemption"}
140-
export GINKGO_SKIP=${GINKGO_SKIP:-"\[LinuxOnly\]|\[Serial\]|\[Slow\]|\[Excluded:WindowsDocker\]|Networking.Granular.Checks(.*)node-pod.communication|Guestbook.application.should.create.and.stop.a.working.application|device.plugin.for.Windows|Container.Lifecycle.Hook.when.create.a.pod.with.lifecycle.hook.should.execute(.*)http.hook.properly|\[sig-api-machinery\].Garbage.collector"}
141-
export GINKGO_NODES="${GINKGO_NODES:-"4"}"
139+
if [[ ! "${RUN_SERIAL_TESTS:-}" == "true" ]]; then
140+
export GINKGO_FOCUS=${GINKGO_FOCUS:-"\[Conformance\]|\[NodeConformance\]|\[sig-windows\]|\[sig-apps\].CronJob|\[sig-api-machinery\].ResourceQuota|\[sig-scheduling\].SchedulerPreemption"}
141+
export GINKGO_SKIP=${GINKGO_SKIP:-"\[LinuxOnly\]|\[Serial\]|\[Slow\]|\[Excluded:WindowsDocker\]|Networking.Granular.Checks(.*)node-pod.communication|Guestbook.application.should.create.and.stop.a.working.application|device.plugin.for.Windows|Container.Lifecycle.Hook.when.create.a.pod.with.lifecycle.hook.should.execute(.*)http.hook.properly|\[sig-api-machinery\].Garbage.collector"}
142+
export GINKGO_NODES="${GINKGO_NODES:-"4"}"
143+
else
144+
export GINKGO_FOCUS=${GINKGO_FOCUS:-"(\[sig-windows\]|\[sig-scheduling\].SchedulerPreemption|\[sig-autoscaling\].\[Feature:HPA\]|\[sig-apps\].CronJob).*(\[Serial\]|\[Slow\])|(\[Serial\]|\[Slow\]).*(\[Conformance\]|\[NodeConformance\])|\[sig-api-machinery\].Garbage.collector"}
145+
export GINKGO_SKIP=${GINKGO_SKIP:-"\[LinuxOnly\]|\[Excluded:WindowsDocker\]|device.plugin.for.Windows"}
146+
export GINKGO_NODES="${GINKGO_NODES:-"1"}"
147+
fi
142148

143149
ADDITIONAL_E2E_ARGS=()
144150
if [[ "$CI" == "true" ]]; then

0 commit comments

Comments
 (0)