Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/renku_data_services/k8s/watcher/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def __init__(
async def __sync(self, client: K8sClusterClient, kind: GVK, raise_exceptions: bool = False) -> None:
"""Upsert K8s objects in the cache and remove deleted objects from the cache."""

fltr = K8sObjectFilter(gvk=kind, cluster=client.get_cluster().id, namespace=client.get_cluster().namespace)
filter = K8sObjectFilter(gvk=kind, cluster=client.get_cluster().id, namespace=client.get_cluster().namespace)
# Upsert new / updated objects
objects_in_k8s: dict[str, K8sObject] = {}
obj_iter = aiter(client.list(fltr))
obj_iter = aiter(client.list(filter))
while True:
try:
obj = await anext(obj_iter)
Expand All @@ -67,7 +67,7 @@ async def __sync(self, client: K8sClusterClient, kind: GVK, raise_exceptions: bo
objects_in_k8s[obj.name] = obj
await self.__cache.upsert(obj)

cache_iter = aiter(self.__cache.list(fltr))
cache_iter = aiter(self.__cache.list(filter))
while True:
try:
cache_obj = await anext(cache_iter)
Expand Down
Loading