Skip to content

Commit

Permalink
ci: enable tests with kubernetes v1.29 (#1230)
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <[email protected]>
  • Loading branch information
aramase authored Feb 23, 2024
1 parent bbe98ca commit 94283c5
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 20 deletions.
18 changes: 10 additions & 8 deletions .pipelines/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ jobs:
upgrade_aks_linux:
GINKGO_SKIP: \[AKSSoakOnly\]
- job:
# using the tmp pool as a workaround for the kind cluster creation issue.
pool: tmp-staging-pool-amd64-mariner-2
timeoutInMinutes: 60
dependsOn:
- scan_images
Expand All @@ -135,14 +137,14 @@ jobs:
value: "true"
strategy:
matrix:
kind_v1_24_12:
KIND_NODE_VERSION: v1.24.12
kind_v1_25_8:
KIND_NODE_VERSION: v1.25.8
kind_v1_26_3:
KIND_NODE_VERSION: v1.26.3
kind_v1_27_1:
KIND_NODE_VERSION: v1.27.1
kind_v1_26_14:
KIND_NODE_VERSION: v1.26.14
kind_v1_27_11:
KIND_NODE_VERSION: v1.27.11
kind_v1_28_7:
KIND_NODE_VERSION: v1.28.7
kind_v1_29_2:
KIND_NODE_VERSION: v1.29.2
steps:
- script: make test-e2e
displayName: Webhook E2E test suite
Expand Down
54 changes: 46 additions & 8 deletions .pipelines/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,58 @@ jobs:
aks_linux:
REGISTRY: upstream.azurecr.io/azure-workload-identity
GINKGO_SKIP: \[AKSSoakOnly\]
kind_v1_24_12:
KIND_NODE_VERSION: v1.24.12
steps:
- script: echo "##vso[task.setvariable variable=CLUSTER_NAME]azwi-e2e-$(openssl rand -hex 2)"
displayName: Set CLUSTER_NAME
condition: ne(variables.LOCAL_ONLY, 'true')
- script: make test-e2e
displayName: Webhook E2E test suite
env:
APPLICATION_CLIENT_ID: $(APPLICATION_CLIENT_ID)
AZURE_TENANT_ID: $(AZURE_TENANT_ID)
KEYVAULT_URL: $(KEYVAULT_URL)
KEYVAULT_SECRET_NAME: $(KEYVAULT_SECRET_NAME)
SERVICE_ACCOUNT_ISSUER: $(SERVICE_ACCOUNT_ISSUER)
SERVICE_ACCOUNT_KEYVAULT_NAME: $(SERVICE_ACCOUNT_KEYVAULT_NAME)
- script: az group delete --name "${CLUSTER_NAME}" --yes --no-wait || true
displayName: Cleanup
condition: ne(variables.LOCAL_ONLY, 'true')
- template: templates/publish-logs.yaml
- job:
timeoutInMinutes: 60
# using the tmp pool as a workaround for the kind cluster creation issue.
pool: tmp-staging-pool-amd64-mariner-2
dependsOn:
- lint
- scan_images
- shellcheck
workspace:
clean: all
variables:
# contains the following environment variables:
# - APPLICATION_CLIENT_ID
# - AZURE_TENANT_ID
# - KEYVAULT_URL
# - KEYVAULT_SECRET_NAME
# - SERVICE_ACCOUNT_ISSUER
# - SERVICE_ACCOUNT_KEYVAULT_NAME
- group: e2e-environment-variables
strategy:
matrix:
kind_v1_26_14:
KIND_NODE_VERSION: v1.26.14
LOCAL_ONLY: "true"
TEST_HELM_CHART: "true"
kind_v1_25_8:
KIND_NODE_VERSION: v1.25.8
kind_v1_27_11:
KIND_NODE_VERSION: v1.27.11
LOCAL_ONLY: "true"
TEST_HELM_CHART: "true"
kind_v1_26_3:
KIND_NODE_VERSION: v1.26.3
kind_v1_28_7:
KIND_NODE_VERSION: v1.28.7
LOCAL_ONLY: "true"
TEST_HELM_CHART: "true"
kind_v1_27_1:
KIND_NODE_VERSION: v1.27.1
kind_v1_29_2:
KIND_NODE_VERSION: v1.29.2
LOCAL_ONLY: "true"
TEST_HELM_CHART: "true"
steps:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ GINKGO_VER := v2.1.6
GINKGO_BIN := ginkgo
GINKGO := $(TOOLS_BIN_DIR)/$(GINKGO_BIN)-$(GINKGO_VER)

KIND_VER := v0.18.0
KIND_VER := v0.21.0
KIND_BIN := kind
KIND := $(TOOLS_BIN_DIR)/$(KIND_BIN)-$(KIND_VER)

KUBECTL_VER := v1.22.4
KUBECTL_VER := v1.29.0
KUBECTL_BIN := kubectl
KUBECTL := $(TOOLS_BIN_DIR)/$(KUBECTL_BIN)-$(KUBECTL_VER)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Azure AD Workload Identity is the next iteration of [Azure AD Pod Identity][1] t

| Kubernetes Version | Supported |
| ------------------ | --------- |
| 1.29 ||
| 1.28 ||
| 1.27 ||
| 1.26 ||
| 1.25 ||
| 1.24 ||

## Installation

Expand Down

0 comments on commit 94283c5

Please sign in to comment.