diff --git a/charts/gitops/Chart.yaml b/charts/gitops/Chart.yaml index 71b6853..d4be01d 100644 --- a/charts/gitops/Chart.yaml +++ b/charts/gitops/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 appVersion: "1.0" description: GitOps Server Helm chart. name: gitops -version: 0.9.20 +version: 0.9.21 diff --git a/gitops/__init__.py b/gitops/__init__.py index ef913e8..72f3fa1 100644 --- a/gitops/__init__.py +++ b/gitops/__init__.py @@ -5,7 +5,7 @@ from . import monkeypatches # NOQA from .utils.cli import success, warning -__version__ = "0.9.20" +__version__ = "0.9.21" # Checking gitops version matches cluster repo version. diff --git a/gitops_server/workers/status_updater/worker.py b/gitops_server/workers/status_updater/worker.py index 39c948b..f63139e 100644 --- a/gitops_server/workers/status_updater/worker.py +++ b/gitops_server/workers/status_updater/worker.py @@ -25,7 +25,7 @@ async def get_ingress_url(api, namespace: str, app: str): """Attempts to get domain for the ingress associated with the app""" - ingresses = await kubernetes_asyncio.client.NetworkingApi(api).list_namespaced_ingress( + ingresses = await kubernetes_asyncio.client.NetworkingV1Api(api).list_namespaced_ingress( namespace=namespace, label_selector=f"app={app}" ) environment_url = "" diff --git a/poetry.lock b/poetry.lock index ab01938..0b990eb 100644 --- a/poetry.lock +++ b/poetry.lock @@ -769,12 +769,13 @@ files = [ [[package]] name = "kubernetes-asyncio" -version = "12.1.2" +version = "25.11.0" description = "Kubernetes asynchronous python client" optional = true python-versions = "*" files = [ - {file = "kubernetes_asyncio-12.1.2.tar.gz", hash = "sha256:dfff92cbeed37e81b0c94156162841a7a4ef3e95b00d521d50fe86a14f05fbf9"}, + {file = "kubernetes_asyncio-25.11.0-py3-none-any.whl", hash = "sha256:2d8cea3793fa55745a4f9550cc08d702394b1ee328ef11ba9d9168eb92f323c7"}, + {file = "kubernetes_asyncio-25.11.0.tar.gz", hash = "sha256:29975b64a278f9d6c65935faedfe86225c036b9968cec02119fcfa9406e33a89"}, ] [package.dependencies] @@ -1660,4 +1661,4 @@ server = ["fastapi", "httpx", "kubernetes_asyncio", "sentry-sdk", "uvicorn", "uv [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "50e58b6e233fae8a97fa3120ee9acbe5d175d208f730910c5b33fa4e3379f80c" +content-hash = "d34713afcae90bf369a7ca8df5b99f64123b572ac3c6efaceba45745a97db893" diff --git a/pyproject.toml b/pyproject.toml index b4bb6c0..930723d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "gitops" -version = "0.9.20" +version = "0.9.21" description = "Manage multiple apps across one or more k8s clusters." authors = ["Jarek GÅ‚owacki "] license = "BSD" @@ -20,7 +20,7 @@ fastapi = { version = "*", optional = true } httpx = { version = ">=0.18.1,<0.24.0", optional = true } uvicorn = { version = "^0.17.0", optional = true } sentry-sdk = { version = "^1.3.0", optional = true } -kubernetes_asyncio = { version = "^12.1.2", optional = true } +kubernetes_asyncio = { version = "^25.1.2", optional = true } [tool.poetry.extras] server = [