Skip to content

Commit

Permalink
Add k8s 1.27 support in CI (#1922)
Browse files Browse the repository at this point in the history
* update common config

* update calico crd config

* add missing config in calico crd

* Update .circleci/generate_circleci_config.py

Co-authored-by: Daniel Hoherd <daniel.hoherd@gmail.com>

* fix pre-commit

---------

Co-authored-by: Daniel Hoherd <daniel.hoherd@gmail.com>
  • Loading branch information
pgvishnuram and danielhoherd committed Jul 26, 2023
1 parent bf1ae79 commit 224b372
Show file tree
Hide file tree
Showing 4 changed files with 4,825 additions and 30 deletions.
62 changes: 42 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,52 +250,68 @@ jobs:
helm template --kube-version=v1.23.17 -f values.yaml --set global.baseDomain=example.com . |
kubent --cluster=false --helm3=false --filename -
when: always
platform-1-24-12:
platform-1-24-15:
machine:
image: ubuntu-2204:2023.02.1
resource_class: xlarge
environment:
KUBE_VERSION: v1.24.12
KUBE_VERSION: v1.24.15
steps:
- helm-install:
astronomer-tags: "platform postgresql monitoring logging"
- run:
name: Check chart for k8s 1.24.12 compatibility with kubent
name: Check chart for k8s 1.24.15 compatibility with kubent
command: |
set -o pipefail
helm template --kube-version=v1.24.12 -f values.yaml --set global.baseDomain=example.com . |
helm template --kube-version=v1.24.15 -f values.yaml --set global.baseDomain=example.com . |
kubent --cluster=false --helm3=false --filename -
when: always
platform-1-25-8:
platform-1-25-11:
machine:
image: ubuntu-2204:2023.02.1
resource_class: xlarge
environment:
KUBE_VERSION: v1.25.8
KUBE_VERSION: v1.25.11
steps:
- helm-install:
astronomer-tags: "platform postgresql monitoring logging"
- run:
name: Check chart for k8s 1.25.8 compatibility with kubent
name: Check chart for k8s 1.25.11 compatibility with kubent
command: |
set -o pipefail
helm template --kube-version=v1.25.8 -f values.yaml --set global.baseDomain=example.com . |
helm template --kube-version=v1.25.11 -f values.yaml --set global.baseDomain=example.com . |
kubent --cluster=false --helm3=false --filename -
when: always
platform-1-26-3:
platform-1-26-6:
machine:
image: ubuntu-2204:2023.02.1
resource_class: xlarge
environment:
KUBE_VERSION: v1.26.3
KUBE_VERSION: v1.26.6
steps:
- helm-install:
astronomer-tags: "platform postgresql monitoring logging"
- run:
name: Check chart for k8s 1.26.3 compatibility with kubent
name: Check chart for k8s 1.26.6 compatibility with kubent
command: |
set -o pipefail
helm template --kube-version=v1.26.3 -f values.yaml --set global.baseDomain=example.com . |
helm template --kube-version=v1.26.6 -f values.yaml --set global.baseDomain=example.com . |
kubent --cluster=false --helm3=false --filename -
when: always
platform-1-27-3:
machine:
image: ubuntu-2204:2023.02.1
resource_class: xlarge
environment:
KUBE_VERSION: v1.27.3
steps:
- helm-install:
astronomer-tags: "platform postgresql monitoring logging"
- run:
name: Check chart for k8s 1.27.3 compatibility with kubent
command: |
set -o pipefail
helm template --kube-version=v1.27.3 -f values.yaml --set global.baseDomain=example.com . |
kubent --cluster=false --helm3=false --filename -
when: always

Expand Down Expand Up @@ -388,17 +404,22 @@ workflows:
- approve-test-all-platforms
- build-artifact

- platform-1-24-12:
- platform-1-24-15:
requires:
- approve-test-all-platforms
- build-artifact

- platform-1-25-11:
requires:
- approve-test-all-platforms
- build-artifact

- platform-1-25-8:
- platform-1-26-6:
requires:
- approve-test-all-platforms
- build-artifact

- platform-1-26-3:
- platform-1-27-3:
requires:
- build-artifact
- approve-internal-release:
Expand All @@ -409,7 +430,7 @@ workflows:
requires:
- approve-internal-release
- platform-1-22-17
- platform-1-26-3
- platform-1-27-3
- approve-upgrade-test:
type: approval
filters:
Expand All @@ -429,8 +450,9 @@ workflows:
requires:
- release-to-internal
- platform-1-23-17
- platform-1-24-12
- platform-1-25-8
- platform-1-24-15
- platform-1-25-11
- platform-1-26-6
filters:
branches:
only:
Expand Down Expand Up @@ -469,7 +491,7 @@ workflows:
requires:
- build-artifact

- platform-1-26-3:
- platform-1-27-3:
requires:
- build-artifact

Expand All @@ -478,7 +500,7 @@ workflows:
- gcp-astronomer-prod
requires:
- platform-1-22-17
- platform-1-26-3
- platform-1-27-3
filters:
branches:
only:
Expand Down
8 changes: 1 addition & 7 deletions .circleci/generate_circleci_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@
# recent patch version on Dockerhub
# This should match what is in tests/__init__.py
# https://hub.docker.com/r/kindest/node/tags
kube_versions = [
"1.22.17",
"1.23.17",
"1.24.12",
"1.25.8",
"1.26.3",
]
kube_versions = ["1.22.17", "1.23.17", "1.24.15", "1.25.11", "1.26.6", "1.27.3"]
# https://circleci.com/docs/2.0/building-docker-images/#docker-version
ci_remote_docker_version = "20.10.18"
# https://circleci.com/developer/machine/image/ubuntu-2204
Expand Down
6 changes: 3 additions & 3 deletions bin/install-ci-tools
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
set -xeuo pipefail

KIND_VERSION="0.18.0" # https://github.com/kubernetes-sigs/kind/releases
HELM_VERSION="3.12.0" # https://github.com/helm/helm/releases
GCLOUD_VERSION="429.0.0"
KIND_VERSION="0.20.0" # https://github.com/kubernetes-sigs/kind/releases
HELM_VERSION="3.12.1" # https://github.com/helm/helm/releases
GCLOUD_VERSION="431.0.0"
MKCERT_VERSION="1.4.4" # https://github.com/FiloSottile/mkcert/tags
KUBENT_VERSION="0.7.0" # https://github.com/doitintl/kube-no-trouble

Expand Down

0 comments on commit 224b372

Please sign in to comment.