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

Initialitation of Development/2.10 branch #3354

Merged
merged 4 commits into from
May 6, 2021
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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# CHANGELOG

## Release 2.10.0 (in development)
## Enhancements

- Bump Kubernetes version to 1.21.0
(PR[#3354](https://github.com/scality/metalk8s/pull/3354))

- Bump CoreDNS version to 1.8.0
(PR[#3354](https://github.com/scality/metalk8s/pull/3354))

## Release 2.9.2 (in development)

## Release 2.9.1
Expand Down
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_MAJOR=2
VERSION_MINOR=9
VERSION_PATCH=2
VERSION_MINOR=10
VERSION_PATCH=0
VERSION_SUFFIX=-dev
1 change: 1 addition & 0 deletions buildchain/buildchain/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

# URLs of the main container repositories.
CALICO_REPOSITORY: str = "docker.io/calico"
COREDNS_REPOSITORY: str = "k8s.gcr.io/coredns"
COREOS_REPOSITORY: str = "quay.io/coreos"
DEX_REPOSITORY: str = "docker.io/dexidp"
DOCKER_REPOSITORY: str = "docker.io/library"
Expand Down
4 changes: 3 additions & 1 deletion buildchain/buildchain/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ def _operator_image(name: str, **kwargs: Any) -> targets.OperatorImage:
"calico-node",
"calico-kube-controllers",
],
constants.COREDNS_REPOSITORY: [
"coredns",
],
constants.COREOS_REPOSITORY: [
"kube-state-metrics",
],
Expand All @@ -181,7 +184,6 @@ def _operator_image(name: str, **kwargs: Any) -> targets.OperatorImage:
"nginx",
],
constants.GOOGLE_REPOSITORY: [
"coredns",
"etcd",
"kube-apiserver",
"kube-controller-manager",
Expand Down
14 changes: 7 additions & 7 deletions buildchain/buildchain/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Project-wide versions {{{

CALICO_VERSION: str = "3.17.0"
K8S_VERSION: str = "1.20.6"
K8S_VERSION: str = "1.21.0"
SALT_VERSION: str = "3002.6"
CONTAINERD_VERSION: str = "1.4.3"

Expand Down Expand Up @@ -111,8 +111,8 @@ def _version_prefix(version: str, prefix: str = "v") -> str:
),
Image(
name="coredns",
version="1.7.0",
digest="sha256:73ca82b4ce829766d4f1f10947c3a338888f876fbed0540dc849c89ff256e90c",
version="v1.8.0",
digest="sha256:cc8fb77bc2a0541949d1d9320a641b82fd392b0d3d8145469ca4709ae769980e",
),
Image(
name="dex",
Expand All @@ -137,22 +137,22 @@ def _version_prefix(version: str, prefix: str = "v") -> str:
Image(
name="kube-apiserver",
version=_version_prefix(K8S_VERSION),
digest="sha256:e6d960baa4219fa810ee26da8fe8a92a1cf9dae83b6ad8bda0e17ee159c68501",
digest="sha256:828fefd9598ed865d45364d1be859c87aabfa445b03b350e3440d143bd21bca9",
),
Image(
name="kube-controller-manager",
version=_version_prefix(K8S_VERSION),
digest="sha256:a1a6e8dbcf0294175df5f248503c8792b3770c53535670e44a7724718fc93e87",
digest="sha256:92414283b8a8ba52ad04691a7124aea042e3f2ec3f6384efc5b08da3e100442d",
),
Image(
name="kube-proxy",
version=_version_prefix(K8S_VERSION),
digest="sha256:7c1710c965f55bca8d06ebd8d5774ecd9ef924f33fb024e424c2b9b565f477dc",
digest="sha256:326199e7a5232bf7531a3058e9811c925b07085f33fa882558cc4e89379b9109",
),
Image(
name="kube-scheduler",
version=_version_prefix(K8S_VERSION),
digest="sha256:ebb0350893fcfe7328140452f8a88ce682ec6f00337015a055d51b3fe0373429",
digest="sha256:1bcafcb4a0c3105fe08018f34c0e43a10a5d696fc8598b1c705116bcc773726f",
),
Image(
name="kube-state-metrics",
Expand Down
8 changes: 8 additions & 0 deletions charts/dex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ certs:
grpc:
create: false

# Explicitly set namespace from env since it's needed for Dex in K8s 1.21
# Sees: https://github.com/dexidp/dex/issues/2082
env:
- name: KUBERNETES_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace

# NOTE: Ignore these values, the configuration is computed from
# - salt/metalk8s/addons/dex/config/dex.yaml
# - salt/metalk8s/addons/dex/deployed/service-configuration.sls
Expand Down
6 changes: 5 additions & 1 deletion salt/metalk8s/addons/dex/deployed/chart.sls
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ spec:
- /usr/local/bin/dex
- serve
- /etc/dex/cfg/config.yaml
env: []
env:
- name: KUBERNETES_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: {% endraw -%}{{ build_image_name("dex", False) }}{%- raw %}:v2.27.0
imagePullPolicy: IfNotPresent
name: main
Expand Down