Skip to content

Commit 14537e7

Browse files
author
Alan Christie
committed
feat: Updated for k8s 1.31
1 parent 851f8d4 commit 14537e7

File tree

7 files changed

+42
-37
lines changed

7 files changed

+42
-37
lines changed

.github/workflows/build-latest.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v3
36-
- name: Set up Python 3.10
37-
uses: actions/setup-python@v3
35+
uses: actions/checkout@v4
36+
- name: Set up Python
37+
uses: actions/setup-python@v5
3838
with:
39-
python-version: '3.10'
39+
python-version: '3.11'
4040
- name: Install dependencies
4141
run: |
4242
pip install --upgrade pip
@@ -49,16 +49,16 @@ jobs:
4949
pylint operator/*.py
5050
ansible-lint
5151
- name: Set up QEMU
52-
uses: docker/setup-qemu-action@v2
52+
uses: docker/setup-qemu-action@v3
5353
- name: Set up Docker Buildx
54-
uses: docker/setup-buildx-action@v2
54+
uses: docker/setup-buildx-action@v3
5555
- name: Login to DockerHub
56-
uses: docker/login-action@v2
56+
uses: docker/login-action@v3
5757
with:
5858
username: ${{ secrets.DOCKERHUB_USERNAME }}
5959
password: ${{ secrets.DOCKERHUB_TOKEN }}
6060
- name: Build and push
61-
uses: docker/build-push-action@v4
61+
uses: docker/build-push-action@v6
6262
with:
6363
context: operator
6464
platforms: linux/amd64,linux/arm64

.github/workflows/build-stable.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3737
- name: Inject slug/short variables
38-
uses: rlespinasse/github-slug-action@v3.x
38+
uses: rlespinasse/github-slug-action@v5
3939
- name: Set up QEMU
40-
uses: docker/setup-qemu-action@v2
40+
uses: docker/setup-qemu-action@v3
4141
- name: Set up Docker Buildx
42-
uses: docker/setup-buildx-action@v2
42+
uses: docker/setup-buildx-action@v3
4343
- name: Login to DockerHub
44-
uses: docker/login-action@v2
44+
uses: docker/login-action@v3
4545
with:
4646
username: ${{ secrets.DOCKERHUB_USERNAME }}
4747
password: ${{ secrets.DOCKERHUB_TOKEN }}
4848
- name: Build and push
49-
uses: docker/build-push-action@v4
49+
uses: docker/build-push-action@v6
5050
with:
5151
context: operator
5252
platforms: linux/amd64,linux/arm64

.github/workflows/build-tag.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
- name: Inject slug/short variables
34-
uses: rlespinasse/github-slug-action@v3.x
34+
uses: rlespinasse/github-slug-action@v5
3535
- name: Set up QEMU
36-
uses: docker/setup-qemu-action@v2
36+
uses: docker/setup-qemu-action@v3
3737
- name: Set up Docker Buildx
38-
uses: docker/setup-buildx-action@v2
38+
uses: docker/setup-buildx-action@v3
3939
- name: Login to DockerHub
40-
uses: docker/login-action@v2
40+
uses: docker/login-action@v3
4141
with:
4242
username: ${{ secrets.DOCKERHUB_USERNAME }}
4343
password: ${{ secrets.DOCKERHUB_TOKEN }}
4444
- name: Build and push
45-
uses: docker/build-push-action@v4
45+
uses: docker/build-push-action@v6
4646
with:
4747
context: operator
4848
platforms: linux/amd64,linux/arm64

.github/workflows/build.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v3
35-
- name: Set up Python 3.10
36-
uses: actions/setup-python@v3
34+
uses: actions/checkout@v4
35+
- name: Set up Python
36+
uses: actions/setup-python@v5
3737
with:
38-
python-version: '3.10'
38+
python-version: '3.11'
3939
- name: Install dependencies
4040
run: |
4141
pip install --upgrade pip
@@ -47,11 +47,11 @@ jobs:
4747
pre-commit run --all-files
4848
ansible-lint
4949
- name: Set up QEMU
50-
uses: docker/setup-qemu-action@v2
50+
uses: docker/setup-qemu-action@v3
5151
- name: Set up Docker Buildx
52-
uses: docker/setup-buildx-action@v2
52+
uses: docker/setup-buildx-action@v3
5353
- name: Build
54-
uses: docker/build-push-action@v4
54+
uses: docker/build-push-action@v6
5555
with:
5656
context: operator
5757
platforms: linux/amd64,linux/arm64

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88

99
# Conventional Commit message checker (commitizen)
1010
- repo: https://github.com/commitizen-tools/commitizen
11-
rev: v3.5.3
11+
rev: v3.30.1
1212
hooks:
1313
- id: commitizen
1414
stages:
@@ -19,7 +19,7 @@ repos:
1919

2020
# Standard pre-commit rules
2121
- repo: https://github.com/pre-commit/pre-commit-hooks
22-
rev: v4.4.0
22+
rev: v5.0.0
2323
hooks:
2424
- id: check-case-conflict
2525
- id: check-docstring-first
@@ -32,32 +32,32 @@ repos:
3232
- --markdown-linebreak-ext=md
3333
# Black (uncompromising) Python code formatter
3434
- repo: https://github.com/psf/black
35-
rev: 23.7.0
35+
rev: 24.10.0
3636
hooks:
3737
- id: black
3838
args:
3939
- --target-version
40-
- py39
40+
- py312
4141
# MyPy
4242
- repo: https://github.com/pre-commit/mirrors-mypy
43-
rev: v1.4.1
43+
rev: v1.13.0
4444
hooks:
4545
- id: mypy
4646
files: ^operator
4747
# Pylint
4848
- repo: https://github.com/pycqa/pylint
49-
rev: v2.17.4
49+
rev: v3.3.1
5050
hooks:
5151
- id: pylint
5252
files: ^operator
5353
# YAML Lint
54-
# We have to adjust this hook, whcih looks for yaml files,
54+
# We have to adjust this hook, which looks for yaml files,
5555
# because some of our files are 'disguised' and not found by
5656
# 'identify', used by pre-commit. So we basically say...
5757
# All files that end '.yaml' or '.yaml.j2'
5858
# See https://pre-commit.com/#filtering-files-with-types
5959
- repo: https://github.com/adrienverge/yamllint
60-
rev: v1.32.0
60+
rev: v1.35.1
6161
hooks:
6262
- id: yamllint
6363
types:

operator/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
kopf == 1.36.2
2-
kubernetes == 23.6.0
1+
kopf == 1.37.2
2+
kubernetes == 31.0.0

parameters-sd.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
3+
jo_kubeconfig: "{{ lookup('env', 'KUBECONFIG') }}"
4+
5+
jo_dmapi_namespace: data-manager-api-sygnature

0 commit comments

Comments
 (0)