Skip to content

Commit

Permalink
fix: correctly use NetworkingV1Api
Browse files Browse the repository at this point in the history
  • Loading branch information
uptickmetachu committed Aug 31, 2023
1 parent 9793aea commit fc76338
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/gitops/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: GitOps Server Helm chart.
name: gitops
version: 0.9.20
version: 0.9.21
2 changes: 1 addition & 1 deletion gitops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion gitops_server/workers/status_updater/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down
7 changes: 4 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "BSD"
Expand All @@ -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 = [
Expand Down

0 comments on commit fc76338

Please sign in to comment.