Skip to content

Commit 1e69444

Browse files
Merge branch 'development/2.11' into feature/ARTESCA-1878/dashboard-network-plane-health
2 parents 65a3f18 + 3296267 commit 1e69444

File tree

121 files changed

+3424
-2169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+3424
-2169
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ repos:
4747
files: salt/tests/unit/formulas/.*\.py
4848
additional_dependencies:
4949
- 'pyenchant~=3.2'
50-
- 'salt==3002.6'
50+
- 'salt==3002.7'
5151
- pytest
5252
- Jinja2
5353

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
# CHANGELOG
22
## Release 2.11.0 (in development)
33
### Enhancements
4+
5+
- Bump Kubernetes version to 1.22.1
6+
(PR[#3525](https://github.com/scality/metalk8s/pull/3525))
7+
8+
- Bump etcd version to 3.5.0-0
9+
(PR[#3525](https://github.com/scality/metalk8s/pull/3525))
10+
11+
- Bump CoreDNS version to v1.8.4
12+
(PR[#3525](https://github.com/scality/metalk8s/pull/3525))
13+
414
- Bump `containerd` version to 1.4.8 (PR [#3466](https://github.com/scality/metalk8s/pull/3466)).
515

16+
- Bump Calico version to 3.20.0
17+
(PR[#3527](https://github.com/scality/metalk8s/pull/3527))
18+
19+
- Bump ingress-nginx chart version to 4.0.1
20+
nginx-ingress-controller image has been bumped accordingly to v1.0.0
21+
(PR[#3518](https://github.com/scality/metalk8s/pull/3518))
22+
23+
- Bump Dex chart version to v0.6.3, Dex image has been bumped accordingly
24+
to v2.30.0
25+
(PR[#3519](https://github.com/scality/metalk8s/pull/3519))
26+
627
- [#3487](https://github.com/scality/metalk8s/issues/3487) - Make Salt
728
Kubernetes execution module more flexible relying on `DynamicClient`
829
from `python-kubernetes`
@@ -14,6 +35,20 @@
1435
- Bump Kubernetes version to 1.21.4
1536
(PR[#3495](https://github.com/scality/metalk8s/pull/3495))
1637

38+
- Bump Salt version to 3002.7
39+
(PR [#3524](https://github.com/scality/metalk8s/pull/3524))
40+
41+
- Improve UI metrics charts (cursor synchronisation when hovering a chart, better tooltip with coloured legend and unit, lot of bug fixes when data is missing, symmetrical charts to compare read/write in/out metrics) (PR[#3529](https://github.com/scality/metalk8s/pull/3529))
42+
43+
## Bug fixes
44+
45+
- Enforce a single subnet for control plane when using a
46+
MetalLB-managed VIP for Ingress
47+
(PR [#3533](https://github.com/scality/metalk8s/pull/3533))
48+
49+
- Fix UI issues in multi nodes environment when a node
50+
is unavailable (PR[#3521](https://github.com/scality/metalk8s/pull/3521))
51+
1752
## Release 2.10.2
1853
### Bug fixes
1954
- Fix the link to documentation from the UI navigation bar

buildchain/buildchain/versions.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919
# Project-wide versions {{{
2020

21-
CALICO_VERSION: str = "3.19.1"
22-
K8S_VERSION: str = "1.21.4"
23-
SALT_VERSION: str = "3002.6"
21+
CALICO_VERSION: str = "3.20.0"
22+
K8S_VERSION: str = "1.22.1"
23+
SALT_VERSION: str = "3002.7"
2424
CONTAINERD_VERSION: str = "1.4.8"
2525
SOS_VERSION: str = "< 4.0"
2626

@@ -98,27 +98,27 @@ def _version_prefix(version: str, prefix: str = "v") -> str:
9898
Image(
9999
name="calico-node",
100100
version=_version_prefix(CALICO_VERSION),
101-
digest="sha256:bc4a631d553b38fdc169ea4cb8027fa894a656e80d68d513359a4b9d46836b55",
101+
digest="sha256:7f9aa7e31fbcea7be64b153f8bcfd494de023679ec10d851a05667f0adb42650",
102102
),
103103
Image(
104104
name="calico-kube-controllers",
105105
version=_version_prefix(CALICO_VERSION),
106-
digest="sha256:904458fe1bd56f995ef76e2c4d9a6831c506cc80f79e8fc0182dc059b1db25a4",
106+
digest="sha256:a850ce8daa84433a5641900693b0f8bc8e5177a4aa4cac8cf4b6cd8c24fd9886",
107107
),
108108
Image(
109109
name="coredns",
110-
version="v1.8.0",
111-
digest="sha256:cc8fb77bc2a0541949d1d9320a641b82fd392b0d3d8145469ca4709ae769980e",
110+
version="v1.8.4",
111+
digest="sha256:6e5a02c21641597998b4be7cb5eb1e7b02c0d8d23cce4dd09f4682d463798890",
112112
),
113113
Image(
114114
name="dex",
115-
version="v2.28.1",
116-
digest="sha256:5e88f2205de172b60fd7af23ac92f34321688a83de9f7de7c9a6f394f6950877",
115+
version="v2.30.0",
116+
digest="sha256:63fc6ee14bcf1868ebfba90885aec76597e0f27bc8e89d1fd238b1f2ee3dea6e",
117117
),
118118
Image(
119119
name="etcd",
120-
version="3.4.13-0",
121-
digest="sha256:4ad90a11b55313b182afc186b9876c8e891531b8db4c9bf1541953021618d0e2",
120+
version="3.5.0-0",
121+
digest="sha256:9ce33ba33d8e738a5b85ed50b5080ac746deceed4a7496c550927a7a19ca3b6d",
122122
),
123123
Image(
124124
name="grafana",
@@ -133,22 +133,22 @@ def _version_prefix(version: str, prefix: str = "v") -> str:
133133
Image(
134134
name="kube-apiserver",
135135
version=_version_prefix(K8S_VERSION),
136-
digest="sha256:a12a4347573b16ba925bf3c2154b9155faa7796d35016d0e194f3ffce93435dc",
136+
digest="sha256:6862d5a70cea8f3ef49213d6a36b7bfbbf90f99fb37f7124505be55f0ef51364",
137137
),
138138
Image(
139139
name="kube-controller-manager",
140140
version=_version_prefix(K8S_VERSION),
141-
digest="sha256:2f8234e1d386faa415090c381edc55a473b355ba79ef71c7851f89041b294d56",
141+
digest="sha256:3e4274dee8a122bdd5e3f3db6b1eb8db59404deda2bf1adb0fec1da5dd95400a",
142142
),
143143
Image(
144144
name="kube-proxy",
145145
version=_version_prefix(K8S_VERSION),
146-
digest="sha256:bebf88332fc0e5648795fd7f0b57c4d39b901878e56d7cbd940ff9bd20d2a027",
146+
digest="sha256:efcf1d5fb2fc95d28841f534f1385a4884230c7c876fb1b7cf66d2777ad6dc56",
147147
),
148148
Image(
149149
name="kube-scheduler",
150150
version=_version_prefix(K8S_VERSION),
151-
digest="sha256:650b648d881c672e7541227ad3ef9ff107e24d565a66feec95ca089b027c0b18",
151+
digest="sha256:e1a999694bf4b9198bc220216680ef651fabe406445a93c2d354f9dd7e53c1fd",
152152
),
153153
Image(
154154
name="kube-state-metrics",
@@ -162,8 +162,8 @@ def _version_prefix(version: str, prefix: str = "v") -> str:
162162
),
163163
Image(
164164
name="nginx-ingress-controller",
165-
version="v0.47.0",
166-
digest="sha256:a1e4efc107be0bb78f32eaec37bef17d7a0c81bec8066cdf2572508d21351d0b",
165+
version="v1.0.0",
166+
digest="sha256:0851b34f69f69352bf168e6ccf30e1e20714a264ab1ecd1933e4d8c0fc3215c6",
167167
),
168168
Image(
169169
name="nginx-ingress-defaultbackend-amd64",

charts/dex.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ volumeMounts:
5151
- name: https-tls
5252
mountPath: /etc/dex/tls/https/server
5353
- name: dex-login
54-
mountPath: /web/themes/scality
54+
mountPath: /srv/dex/web/themes/scality
5555
- name: nginx-ingress-ca-cert
5656
mountPath: /etc/ssl/certs/nginx-ingress-ca.crt
5757
subPath: ca.crt

charts/dex/Chart.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
annotations:
22
artifacthub.io/changes: |
3-
- Added support for priority class name
3+
- kind: added
4+
description: "`clusterIP` value to control the IP when using ClusterIP service type"
45
artifacthub.io/images: |
56
- name: dex
6-
image: ghcr.io/dexidp/dex:v2.28.1
7+
image: ghcr.io/dexidp/dex:v2.30.0
78
apiVersion: v2
8-
appVersion: 2.28.1
9+
appVersion: 2.30.0
910
description: OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable
1011
connectors.
1112
home: https://dexidp.io/
@@ -25,4 +26,4 @@ sources:
2526
- https://github.com/dexidp/dex
2627
- https://github.com/dexidp/helm-charts/tree/master/charts/dex
2728
type: application
28-
version: 0.4.0
29+
version: 0.6.3

charts/dex/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# dex
22

3-
![version: 0.4.0](https://img.shields.io/badge/version-0.4.0-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.28.1](https://img.shields.io/badge/app%20version-2.28.1-informational?style=flat-square) ![kube version: >=1.14.0-0](https://img.shields.io/badge/kube%20version->=1.14.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-dex-informational?style=flat-square)](https://artifacthub.io/packages/helm/dex/dex)
3+
![version: 0.6.3](https://img.shields.io/badge/version-0.6.3-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.30.0](https://img.shields.io/badge/app%20version-2.30.0-informational?style=flat-square) ![kube version: >=1.14.0-0](https://img.shields.io/badge/kube%20version->=1.14.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-dex-informational?style=flat-square)](https://artifacthub.io/packages/helm/dex/dex)
44

55
OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors.
66

@@ -140,6 +140,7 @@ ingress:
140140
| securityContext | object | `{}` | Container [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container). See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context-1) for details. |
141141
| service.annotations | object | `{}` | Annotations to be added to the service. |
142142
| service.type | string | `"ClusterIP"` | Kubernetes [service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types). |
143+
| service.clusterIP | string | `""` | Internal cluster service IP (when applicable) |
143144
| service.ports.http.port | int | `5556` | HTTP service port |
144145
| service.ports.http.nodePort | int | `nil` | HTTP node port (when applicable) |
145146
| service.ports.https.port | int | `5554` | HTTPS service port |

charts/dex/ci/no-config-secret.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
config:
2+
issuer: https://my-issuer.com
3+
4+
storage:
5+
type: memory
6+
7+
enablePasswordDB: true
8+
9+
configSecret:
10+
create: false

charts/dex/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ spec:
1414
template:
1515
metadata:
1616
annotations:
17-
checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
1817
{{- with .Values.podAnnotations }}
1918
{{- toYaml . | nindent 8 }}
2019
{{- end }}
20+
{{ if .Values.configSecret.create }}
21+
checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
22+
{{- end }}
2123
labels:
2224
{{- include "dex.selectorLabels" . | nindent 8 }}
2325
spec:

charts/dex/templates/secret.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ if .Values.configSecret.create }}
1+
{{- if .Values.configSecret.create -}}
22
apiVersion: v1
33
kind: Secret
44
metadata:
@@ -8,4 +8,4 @@ metadata:
88
type: Opaque
99
data:
1010
config.yaml: {{ .Values.config | toYaml | b64enc | quote }}
11-
{{ end }}
11+
{{- end }}

charts/dex/templates/service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ metadata:
1010
{{- end }}
1111
spec:
1212
type: {{ .Values.service.type }}
13-
{{- if hasKey .Values.service "clusterIP" }}
14-
clusterIP: {{ .Values.service.clusterIP | quote }}
13+
{{- with .Values.service.clusterIP }}
14+
clusterIP: {{ . }}
1515
{{- end }}
1616
ports:
1717
- name: http
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{- if not .Values.configSecret.create -}}
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: {{ include "dex.configSecretName" . }}-test-no-create
6+
labels:
7+
{{- include "dex.labels" . | nindent 4 }}
8+
annotations:
9+
"helm.sh/hook": test
10+
type: Opaque
11+
data:
12+
config.yaml: {{ .Values.config | toYaml | b64enc | quote }}
13+
{{- end }}

charts/dex/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ service:
122122
# -- Kubernetes [service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types).
123123
type: ClusterIP
124124

125+
# -- Internal cluster service IP (when applicable)
126+
clusterIP: ""
127+
125128
ports:
126129
http:
127130
# -- HTTP service port

charts/ingress-nginx-control-plane-daemonset.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ controller:
77

88
electionID: ingress-control-plane-controller-leader
99

10-
ingressClass: nginx-control-plane
10+
ingressClassResource:
11+
name: nginx-control-plane
12+
controllerValue: "k8s.io/ingress-nginx-control-plane"
1113

1214
admissionWebhooks:
1315
enabled: false

charts/ingress-nginx-control-plane-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ controller:
77

88
electionID: ingress-control-plane-controller-leader
99

10-
ingressClass: nginx-control-plane
10+
ingressClassResource:
11+
name: nginx-control-plane
12+
controllerValue: "k8s.io/ingress-nginx-control-plane"
1113

1214
admissionWebhooks:
1315
enabled: false

charts/ingress-nginx.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ controller:
66
hostPort:
77
enabled: true
88

9+
ingressClassResource:
10+
default: true
11+
912
admissionWebhooks:
1013
enabled: false
1114

charts/ingress-nginx/Chart.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
annotations:
22
artifacthub.io/changes: |
3-
- Add namespace field in the namespace scoped resource templates
3+
- Support for Ingress object v1 and drop support for v1beta1
4+
- Update to go 1.17
5+
- Fix some bugs
6+
artifacthub.io/prerelease: "false"
47
apiVersion: v2
5-
appVersion: 0.47.0
8+
appVersion: 1.0.0
69
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
710
home: https://github.com/kubernetes/ingress-nginx
811
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Nginx_logo.svg/500px-Nginx_logo.svg.png
912
keywords:
1013
- ingress
1114
- nginx
12-
kubeVersion: '>=1.16.0-0'
15+
kubeVersion: '>=1.19.0-0'
1316
maintainers:
1417
- name: ChiefAlexander
1518
name: ingress-nginx
1619
sources:
1720
- https://github.com/kubernetes/ingress-nginx
1821
type: application
19-
version: 3.34.0
22+
version: 4.0.1

charts/ingress-nginx/OWNERS

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# See the OWNERS docs: https://github.com/kubernetes/community/blob/master/contributors/guide/owners.md
2+
13
approvers:
2-
- ChiefAlexander
4+
- ingress-nginx-helm-maintainers
35

46
reviewers:
5-
- ChiefAlexander
7+
- ingress-nginx-helm-reviewers
8+
9+
labels:
10+
- area/helm

charts/ingress-nginx/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ You can add Prometheus annotations to the metrics service using `controller.metr
9090

9191
Previous versions of this chart had a `controller.stats.*` configuration block, which is now obsolete due to the following changes in nginx ingress controller:
9292

93-
- In [0.16.1](https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md#0161), the vts (virtual host traffic status) dashboard was removed
94-
- In [0.23.0](https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md#0230), the status page at port 18080 is now a unix socket webserver only available at localhost.
95-
You can use `curl --unix-socket /tmp/nginx-status-server.sock http://localhost/nginx_status` inside the controller container to access it locally, or use the snippet from [nginx-ingress changelog](https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md#0230) to re-enable the http server
93+
- In [0.16.1](https://github.com/kubernetes/ingress-nginx/blob/main/Changelog.md#0161), the vts (virtual host traffic status) dashboard was removed
94+
- In [0.23.0](https://github.com/kubernetes/ingress-nginx/blob/main/Changelog.md#0230), the status page at port 18080 is now a unix socket webserver only available at localhost.
95+
You can use `curl --unix-socket /tmp/nginx-status-server.sock http://localhost/nginx_status` inside the controller container to access it locally, or use the snippet from [nginx-ingress changelog](https://github.com/kubernetes/ingress-nginx/blob/main/Changelog.md#0230) to re-enable the http server
9696

9797
### ExternalDNS Service Configuration
9898

@@ -107,7 +107,7 @@ controller:
107107
108108
### AWS L7 ELB with SSL Termination
109109
110-
Annotate the controller as shown in the [nginx-ingress l7 patch](https://github.com/kubernetes/ingress-nginx/blob/master/deploy/aws/l7/service-l7.yaml):
110+
Annotate the controller as shown in the [nginx-ingress l7 patch](https://github.com/kubernetes/ingress-nginx/blob/main/deploy/aws/l7/service-l7.yaml):
111111
112112
```yaml
113113
controller:
@@ -159,7 +159,7 @@ controller:
159159
enabled: true
160160
annotations:
161161
# Create internal ELB
162-
service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
162+
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
163163
# Any other annotation can be declared here.
164164
```
165165

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
controller:
2+
watchIngressWithoutClass: true
3+
ingressClassResource:
4+
name: custom-nginx
5+
enabled: true
6+
default: true
7+
controllerValue: "k8s.io/custom-nginx"

charts/ingress-nginx/ci/daemonset-customconfig-values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
controller:
2+
image:
3+
repository: ingress-controller/controller
4+
tag: 1.0.0-dev
5+
digest: null
26
kind: DaemonSet
37
admissionWebhooks:
48
enabled: false

charts/ingress-nginx/ci/daemonset-customnodeport-values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
controller:
22
kind: DaemonSet
3+
image:
4+
repository: ingress-controller/controller
5+
tag: 1.0.0-dev
6+
digest: null
37
admissionWebhooks:
48
enabled: false
59

0 commit comments

Comments
 (0)