This is an automated email from the ASF dual-hosted git repository. ash pushed a commit to branch v2-0-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit cf41de43b06b95d085d60576b944c20061979245 Author: Jarek Potiuk <[email protected]> AuthorDate: Sun Apr 4 15:08:18 2021 +0200 Bump K8S versions to latest supported ones. (#15156) K8S has a one-year support policy. This PR updates the K8S versions we use to test to the latest available in three supported versions of K8S as of now: 1.20, 1.19. 18. The 1.16 and 1.17 versions are not supported any more as of today. https://en.wikipedia.org/wiki/Kubernetes This change also bumps kind to latest version (we use kind for K8S testing) and fixes configuration to match this version. (cherry picked from commit 36ab9dd7c4188278068c9b8c280d874760f02c5b) --- BREEZE.rst | 8 ++++---- README.md | 2 +- breeze-complete | 4 ++-- docs/apache-airflow/installation.rst | 2 +- scripts/ci/kubernetes/kind-cluster-conf.yaml | 15 ++++----------- scripts/ci/libraries/_initialization.sh | 4 ++-- 6 files changed, 14 insertions(+), 21 deletions(-) diff --git a/BREEZE.rst b/BREEZE.rst index 293cb37..2a8a74a 100644 --- a/BREEZE.rst +++ b/BREEZE.rst @@ -2485,17 +2485,17 @@ This is the current syntax for `./breeze <./breeze>`_: Kubernetes version - only used in case one of kind-cluster commands is used. One of: - v1.18.6 v1.17.5 v1.16.9 + v1.20.2 v1.19.7 v1.18.15 - Default: v1.18.6 + Default: v1.20.2 --kind-version KIND_VERSION Kind version - only used in case one of kind-cluster commands is used. One of: - v0.8.0 + v0.10.0 - Default: v0.8.0 + Default: v0.10.0 --helm-version HELM_VERSION Helm version - only used in case one of kind-cluster commands is used. diff --git a/README.md b/README.md index 7385ed2..0270131 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Apache Airflow is tested with: | PostgreSQL | 9.6, 10, 11, 12, 13 | 9.6, 10, 11, 12, 13 | 9.6, 10, 11, 12, 13 | | MySQL | 5.7, 8 | 5.7, 8 | 5.6, 5.7 | | SQLite | 3.15.0+ | 3.15.0+ | 3.15.0+ | -| Kubernetes | 1.16.9, 1.17.5, 1.18.6 | 1.16.9, 1.17.5, 1.18.6 | 1.16.9, 1.17.5, 1.18.6 | +| Kubernetes | 1.20, 1.19, 1.18 | 1.20, 1.19, 1.18 | 1.18, 1.17, 1.16 | **Note:** MySQL 5.x versions are unable to or have limitations with running multiple schedulers -- please see the "Scheduler" docs. MariaDB is not tested/recommended. diff --git a/breeze-complete b/breeze-complete index a75b267..83dfe9f 100644 --- a/breeze-complete +++ b/breeze-complete @@ -30,9 +30,9 @@ _breeze_allowed_generate_constraints_modes="source-providers pypi-providers no-p # registrys is good here even if it is not correct english. We are adding s automatically to all variables _breeze_allowed_github_registrys="docker.pkg.github.com ghcr.io" _breeze_allowed_kubernetes_modes="image" -_breeze_allowed_kubernetes_versions="v1.18.6 v1.17.5 v1.16.9" +_breeze_allowed_kubernetes_versions="v1.20.2 v1.19.7 v1.18.15" _breeze_allowed_helm_versions="v3.2.4" -_breeze_allowed_kind_versions="v0.8.0" +_breeze_allowed_kind_versions="v0.10.0" _breeze_allowed_mysql_versions="5.7 8" _breeze_allowed_postgres_versions="9.6 10 11 12 13" _breeze_allowed_kind_operations="start stop restart status deploy test shell k9s" diff --git a/docs/apache-airflow/installation.rst b/docs/apache-airflow/installation.rst index 0184216..a348334 100644 --- a/docs/apache-airflow/installation.rst +++ b/docs/apache-airflow/installation.rst @@ -42,7 +42,7 @@ Airflow is tested with: * MySQL: 5.7, 8 * SQLite: 3.15.0+ -* Kubernetes: 1.16.9, 1.17.5, 1.18.6 +* Kubernetes: 1.18.15 1.19.7 1.20.2 **Note:** MySQL 5.x versions are unable to or have limitations with running multiple schedulers -- please see: :doc:`/scheduler`. MariaDB is not tested/recommended. diff --git a/scripts/ci/kubernetes/kind-cluster-conf.yaml b/scripts/ci/kubernetes/kind-cluster-conf.yaml index df60820..f03c1b7 100644 --- a/scripts/ci/kubernetes/kind-cluster-conf.yaml +++ b/scripts/ci/kubernetes/kind-cluster-conf.yaml @@ -16,9 +16,10 @@ # under the License. --- kind: Cluster -apiVersion: kind.sigs.k8s.io/v1alpha3 +apiVersion: kind.x-k8s.io/v1alpha4 networking: - apiServerAddress: 0.0.0.0 + ipFamily: ipv4 + apiServerAddress: "127.0.0.1" apiServerPort: 19090 nodes: - role: control-plane @@ -26,13 +27,5 @@ nodes: extraPortMappings: - containerPort: 30007 hostPort: 8080 - listenAddress: "0.0.0.0" + listenAddress: "127.0.0.1" protocol: TCP -kubeadmConfigPatchesJson6902: - - group: kubeadm.k8s.io - version: v1beta2 - kind: ClusterConfiguration - patch: | - - op: add - path: /apiServer/certSANs/- - value: docker diff --git a/scripts/ci/libraries/_initialization.sh b/scripts/ci/libraries/_initialization.sh index cb42693..f924962 100644 --- a/scripts/ci/libraries/_initialization.sh +++ b/scripts/ci/libraries/_initialization.sh @@ -476,13 +476,13 @@ function initialization::initialize_provider_package_building() { # Determine versions of kubernetes cluster and tools used function initialization::initialize_kubernetes_variables() { # Currently supported versions of Kubernetes - CURRENT_KUBERNETES_VERSIONS+=("v1.18.6" "v1.17.5" "v1.16.9") + CURRENT_KUBERNETES_VERSIONS+=("v1.20.2" "v1.19.7" "v1.18.15") export CURRENT_KUBERNETES_VERSIONS # Currently supported modes of Kubernetes CURRENT_KUBERNETES_MODES+=("image") export CURRENT_KUBERNETES_MODES # Currently supported versions of Kind - CURRENT_KIND_VERSIONS+=("v0.8.0") + CURRENT_KIND_VERSIONS+=("v0.10.0") export CURRENT_KIND_VERSIONS # Currently supported versions of Helm CURRENT_HELM_VERSIONS+=("v3.2.4")
