Skip to content

Commit 38aa420

Browse files
committed
Upgrade to python 3.12
1 parent 1d69996 commit 38aa420

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
FROM python:3.10-alpine
1+
FROM python:3.12-alpine
22

33
LABEL description="Kubernetes operator to sync IamIdentityMappings to the aws-auth configmap"
44
LABEL source.repository="aws_auth_eks_crd"
55
LABEL source.dockerfile="Dockerfile"
66

77
RUN apk update --no-cache && apk upgrade --no-cache && apk add build-base
8+
RUN pip install poetry
9+
810
ADD . /app/
911
WORKDIR /app
1012

11-
RUN python -m pip install .
13+
RUN poetry config virtualenvs.create false
14+
RUN mv poetry.lock poetry.lock.bak || true
15+
RUN poetry install --only=main --no-cache
1216

1317
RUN addgroup -S operatorgroup
1418
RUN adduser --system --ingroup operatorgroup --disabled-password --no-create-home --shell /sbin/nologin k8soperator

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ packages = [
1010
]
1111

1212
[tool.poetry.dependencies]
13-
python = "^3.7"
13+
python = "^3.9"
1414
kubernetes = "^17.17.0"
15-
kopf = "1.32.1"
15+
kopf = "^1.38.0"
1616
asyncio = "^3.4.3"
1717
aiojobs = "1.0.0"
18+
PyYAML = "^6.0"
1819

1920
[tool.poetry.dev-dependencies]
2021
bandit = "^1.7.0"
@@ -27,7 +28,7 @@ pydocstyle = "^6.1.1"
2728
pylint = "^2.8.3"
2829
pytest = "^6.2.4"
2930
pytest-cov = "^2.12.1"
30-
PyYAML = "^5.4.1"
31+
PyYAML = "^6.0"
3132
vulture = "^2.3"
3233

3334
[tool.poetry.group.dev.dependencies]

0 commit comments

Comments
 (0)