Skip to content

Commit 29b041c

Browse files
authored
Merge pull request #3041 from consideRatio/pr/require-k8s-1.22
Drop support for k8s 1.21
2 parents 2a02c40 + ba04ded commit 29b041c

File tree

6 files changed

+20
-12
lines changed

6 files changed

+20
-12
lines changed

.github/workflows/test-chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ jobs:
135135
test: install
136136
local-chart-extra-args: >-
137137
--set hub.image.name=jupyterhub/k8s-hub-slim
138-
- k3s-channel: v1.22 # also test prePuller.hook
138+
- k3s-channel: v1.26 # also test prePuller.hook
139139
test: install
140140
local-chart-extra-args: >-
141141
--set prePuller.hook.enabled=true
142142
--set prePuller.hook.pullOnlyOnChanges=true
143-
- k3s-channel: v1.21 # also test hub.existingSecret
143+
- k3s-channel: v1.25 # also test hub.existingSecret
144144
test: install
145145
local-chart-extra-args: >-
146146
--set hub.existingSecret=test-hub-existing-secret
@@ -163,7 +163,7 @@ jobs:
163163
# information from
164164
# https://jupyterhub.github.io/helm-chart/info.json
165165
#
166-
- k3s-channel: v1.23
166+
- k3s-channel: v1.24
167167
test: upgrade
168168
upgrade-from: stable
169169
upgrade-from-extra-args: >-

docs/source/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ and as we merge [breaking changes in pull
1212
requests](https://github.com/jupyterhub/zero-to-jupyterhub-k8s/pulls?q=is%3Apr+is%3Aclosed+label%3Abreaking),
1313
this list should be updated.
1414

15-
- K8s 1.21 is now required.
15+
- K8s 1.22 is now required.
1616
- The Helm chart's provided images now use Python 3.11 instead of Python 3.9.
1717

1818
## 2.0

images/hub/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@
77
# This stage is building Python wheels for use in later stages by using a base
88
# image that has more pre-requisites to do so, such as a C++ compiler.
99
#
10+
# NOTE: If the image version is updated, also update it in ci/refreeze and
11+
# singleuser-sample's Dockerfile!
12+
#
1013
FROM python:3.11-bullseye as build-stage
1114

1215
# Build wheels
1316
#
1417
# We set pip's cache directory and expose it across build stages via an
15-
# ephemeral docker cache (--mount=type=cache,target=${PIP_CACHE_DIR}).
18+
# ephemeral docker cache (--mount=type=cache,target=${PIP_CACHE_DIR}). We use
19+
# the same technique for the directory /tmp/wheels.
1620
#
1721
COPY requirements.txt requirements.txt
1822
ARG PIP_CACHE_DIR=/tmp/pip-cache
@@ -56,7 +60,7 @@ RUN apt-get update \
5660
tini \
5761
&& rm -rf /var/lib/apt/lists/*
5862

59-
# install wheels built in the build-stage
63+
# install wheels built in the build stage
6064
COPY requirements.txt /tmp/requirements.txt
6165
ARG PIP_CACHE_DIR=/tmp/pip-cache
6266
RUN --mount=type=cache,target=${PIP_CACHE_DIR} \

images/singleuser-sample/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@
77
# This stage is building Python wheels for use in later stages by using a base
88
# image that has more pre-requisites to do so, such as a C++ compiler.
99
#
10+
# NOTE: If the image version is updated, also update it in ci/refreeze and
11+
# hub's Dockerfile!
12+
#
1013
FROM python:3.11-bullseye as build-stage
1114

1215
# Build wheels
1316
#
1417
# We set pip's cache directory and expose it across build stages via an
15-
# ephemeral docker cache (--mount=type=cache,target=${PIP_CACHE_DIR}).
18+
# ephemeral docker cache (--mount=type=cache,target=${PIP_CACHE_DIR}). We use
19+
# the same technique for the directory /tmp/wheels.
1620
#
1721
COPY requirements.txt requirements.txt
1822
ARG PIP_CACHE_DIR=/tmp/pip-cache

jupyterhub/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords: [jupyter, jupyterhub, z2jh]
88
home: https://z2jh.jupyter.org
99
sources: [https://github.com/jupyterhub/zero-to-jupyterhub-k8s]
1010
icon: https://jupyterhub.github.io/helm-chart/images/hublogo.svg
11-
kubeVersion: ">=1.21.0-0"
11+
kubeVersion: ">=1.22.0-0"
1212
maintainers:
1313
# Since it is a requirement of Artifact Hub to have specific maintainers
1414
# listed, we have added some below, but in practice the entire JupyterHub team

jupyterhub/templates/scheduling/user-scheduler/rbac.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ rules:
1919
# - unchanged between 1.18 and 1.20
2020
# - changed in 1.21: get/list/watch permission for namespace,
2121
# csidrivers, csistoragecapacities was added.
22-
# - unchanged between 1.22 and 1.25
22+
# - unchanged between 1.22 and 1.26
2323
#
24-
# ref: https://github.com/kubernetes/kubernetes/blob/v1.25.0/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml#L730-L886
24+
# ref: https://github.com/kubernetes/kubernetes/blob/v1.26.0/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml#L730-L886
2525
- apiGroups:
2626
- ""
2727
- events.k8s.io
@@ -183,9 +183,9 @@ rules:
183183
# Copied from the system:volume-scheduler ClusterRole of the k8s version
184184
# matching the kube-scheduler binary we use.
185185
#
186-
# NOTE: These rules have not changed between 1.12 and 1.25.
186+
# NOTE: These rules have not changed between 1.12 and 1.26.
187187
#
188-
# ref: https://github.com/kubernetes/kubernetes/blob/v1.25.0/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml#L1305-L1332
188+
# ref: https://github.com/kubernetes/kubernetes/blob/v1.26.0/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml#L1306-L1333
189189
- apiGroups:
190190
- ""
191191
resources:

0 commit comments

Comments
 (0)