diff --git a/Dockerfile b/Dockerfile index c1003bf..2e8090e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,11 +15,11 @@ RUN python3.9 -m pip install poetry \ && python3.9 -m poetry export -f requirements.txt --output requirements.txt --without-hashes # run tests -# FIXME cannot execute tests without a kubeconfig and kubernetes cluster -# COPY tests /app/tests -# RUN pip3 install coverage -# RUN python3.9 -m coverage run tests/test_arcaflow_plugin_kill_pod.py -# RUN python3.9 -m coverage html -d /htmlcov --omit=/usr/local/* +# FIXME cannot execute tests without a kind cluster +COPY tests /app/tests +RUN pip3 install coverage +RUN python3.9 -m coverage run tests/test_arcaflow_plugin_kill_pod.py +RUN python3.9 -m coverage html -d /htmlcov --omit=/usr/local/* #final image FROM quay.io/arcalot/arcaflow-plugin-baseimage-python-osbase:0.4.0 @@ -34,7 +34,7 @@ COPY arcaflow_plugin_kill_pod.py /app RUN python3.9 -m pip install -r requirements.txt -ENTRYPOINT ["python3", "arcaflow_plugin_kill_pod.py"] +#ENTRYPOINT ["python3", "arcaflow_plugin_kill_pod.py"] CMD [] LABEL org.opencontainers.image.source="https://github.com/redhat-chaos/arcaflow-plugin-kill-pod" diff --git a/poetry.lock b/poetry.lock index 953b8b7..dc3ab14 100644 --- a/poetry.lock +++ b/poetry.lock @@ -322,25 +322,25 @@ files = [ [[package]] name = "kubernetes" -version = "26.1.0" +version = "28.1.0" description = "Kubernetes python client" optional = false python-versions = ">=3.6" files = [ - {file = "kubernetes-26.1.0-py2.py3-none-any.whl", hash = "sha256:e3db6800abf7e36c38d2629b5cb6b74d10988ee0cba6fba45595a7cbe60c0042"}, - {file = "kubernetes-26.1.0.tar.gz", hash = "sha256:5854b0c508e8d217ca205591384ab58389abdae608576f9c9afc35a3c76a366c"}, + {file = "kubernetes-28.1.0-py2.py3-none-any.whl", hash = "sha256:10f56f8160dcb73647f15fafda268e7f60cf7dbc9f8e46d52fcd46d3beb0c18d"}, + {file = "kubernetes-28.1.0.tar.gz", hash = "sha256:1468069a573430fb1cb5ad22876868f57977930f80a6749405da31cd6086a7e9"}, ] [package.dependencies] certifi = ">=14.05.14" google-auth = ">=1.0.1" +oauthlib = ">=3.2.2" python-dateutil = ">=2.5.3" pyyaml = ">=5.4.1" requests = "*" requests-oauthlib = "*" -setuptools = ">=21.0.0" six = ">=1.9.0" -urllib3 = ">=1.24.2" +urllib3 = ">=1.24.2,<2.0" websocket-client = ">=0.32.0,<0.40.0 || >0.40.0,<0.41.dev0 || >=0.43.dev0" [package.extras] @@ -589,20 +589,19 @@ files = [ [[package]] name = "urllib3" -version = "2.0.2" +version = "1.26.18" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false -python-versions = ">=3.7" +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" files = [ - {file = "urllib3-2.0.2-py3-none-any.whl", hash = "sha256:d055c2f9d38dc53c808f6fdc8eab7360b6fdbbde02340ed25cfbcd817c62469e"}, - {file = "urllib3-2.0.2.tar.gz", hash = "sha256:61717a1095d7e155cdb737ac7bb2f4324a858a1e2e6466f6d03ff630ca68d3cc"}, + {file = "urllib3-1.26.18-py2.py3-none-any.whl", hash = "sha256:34b97092d7e0a3a8cf7cd10e386f401b3737364026c45e622aa02903dffe0f07"}, + {file = "urllib3-1.26.18.tar.gz", hash = "sha256:f8ecc1bba5667413457c529ab955bf8c67b45db799d159066261719e328580a0"}, ] [package.extras] -brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"] -secure = ["certifi", "cryptography (>=1.9)", "idna (>=2.0.0)", "pyopenssl (>=17.1.0)", "urllib3-secure-extra"] -socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] -zstd = ["zstandard (>=0.18.0)"] +brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"] +secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"] +socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] [[package]] name = "virtualenv" @@ -643,4 +642,4 @@ test = ["websockets"] [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "6ea3c992ebe110c4017c912a5d112775a57af243cfb41f711a94c495e9b1e829" +content-hash = "2f9d999493179be7bcd1ee8591542a0fa2f5d3846c65d7ec5db970e095d642b5" diff --git a/pyproject.toml b/pyproject.toml index c8e6f09..33a9c3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ include = [ [tool.poetry.dependencies] python = "^3.9" arcaflow-plugin-sdk = "0.14.0" -kubernetes = "^26.1.0" +kubernetes = "^28" [tool.poetry.dev-dependencies] coverage = "^6.5.0"