Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: enable tests with kubernetes v1.29 #1230

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
Copy link
Member Author

@aramase aramase Feb 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a new job matrix for 'kind' jobs, so we use the tmp pool only for those.

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
Loading