Skip to content

Commit

Permalink
chore: update k8s client from 23.6.0 to 25.3.0
Browse files Browse the repository at this point in the history
and also adapt tested k8s versions to kind version
  • Loading branch information
jekkel committed Jan 2, 2023
1 parent f09555d commit 674d15b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,34 @@ jobs:
- build
strategy:
matrix:
# see https://github.com/kubernetes-sigs/kind/releases for supported k8s versions per kind version
k8s:
[
v1.14.10,
v1.15.12,
v1.16.15,
v1.17.17,
v1.18.19,
v1.19.11,
v1.20.7,
v1.21.2,
v1.22.5,
v1.23.3,
]
name: "Test on k8s ${{ matrix.k8s }}"
- maj_min: v1.19
digest: sha256:476cb3269232888437b61deca013832fee41f9f074f9bed79f57e4280f7c48b7
- maj_min: v1.20
digest: sha256:a32bf55309294120616886b5338f95dd98a2f7231519c7dedcec32ba29699394
- maj_min: v1.21
digest: sha256:9d9eb5fb26b4fbc0c6d95fa8c790414f9750dd583f5d7cee45d92e8c26670aa1
- maj_min: v1.22
digest: sha256:7d9708c4b0873f0fe2e171e2b1b7f45ae89482617778c1c875f1053d4cef2e41
- maj_min: v1.23
digest: sha256:ef453bb7c79f0e3caba88d2067d4196f427794086a7d0df8df4f019d5e336b61
- maj_min: v1.24
digest: sha256:577c630ce8e509131eab1aea12c022190978dd2f745aac5eb1fe65c0807eb315
- maj_min: v1.25
digest: sha256:f52781bc0d7a19fb6c405c2af83abfeb311f130707a0e219175677e366cc45d1
- maj_min: v1.26
digest: sha256:691e24bd2417609db7e589e1a479b902d2e209892a10ce375fab60a8407c7352
name: "Test on k8s ${{ matrix.k8s.maj_min }}"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create k8s Kind Cluster
# make sure the k8s versions match the kind version of the action version 🤯
uses: helm/[email protected]
with:
node_image: kindest/node:${{ matrix.k8s }}
node_image: kindest/node@${{ matrix.k8s.digest }}
config: test/kind-config.yaml
cluster_name: sidecar-testing
wait: 5m
Expand Down Expand Up @@ -179,4 +185,4 @@ jobs:
kubectl exec sidecar -- sh -c "! test -e /tmp/cm-kubelogo.png" && kubectl exec sidecar -- sh -c "test -e /tmp/change-cm-kubelogo.png" &&
kubectl exec sidecar -- sh -c "! test -e /tmp/secret-kubelogo.png" && kubectl exec sidecar -- sh -c "test -e /tmp/change-secret-kubelogo.png" &&
kubectl exec sidecar -- sh -c "! test -e /tmp/absolute/absolute.txt" && kubectl exec sidecar -- sh -c "test -e /tmp/absolute/change-absolute.txt" &&
kubectl exec sidecar -- sh -c "! test -e /tmp/relative/relative.txt" && kubectl exec sidecar -- sh -c "test -e /tmp/relative/change-relative.txt"
kubectl exec sidecar -- sh -c "! test -e /tmp/relative/relative.txt" && kubectl exec sidecar -- sh -c "test -e /tmp/relative/change-relative.txt"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Both are identical multi-arch images built for `amd64`, `arm64`, `arm/v7`, `ppc6
- Filter based on label
- Update/Delete on change of configmap or secret
- Enforce unique filenames
- CI tests for k8s v1.19-v1.26

# Usage

Expand Down
2 changes: 1 addition & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kubernetes==23.6.0
kubernetes==25.3.0
requests==2.28.1
python-json-logger==2.0.4
logfmter==0.0.6

0 comments on commit 674d15b

Please sign in to comment.