test
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Tom Neuber 2025-01-05 00:54:26 +01:00
parent 9129813244
commit 6e9417a149
Signed by: tom
GPG key ID: F17EFE4272D89FF6

10
main.py
View file

@ -95,9 +95,13 @@ def watch_crd(group, version, plural):
logging.info(f"Watching {group}/{version}/{plural}")
while True:
stream = watch.Watch().stream(crds.list_cluster_custom_object,
group=group, version=version, plural=plural,
resource_version=resource_version)
if resource_version != "":
stream = watch.Watch().stream(crds.list_cluster_custom_object,
group=group, version=version, plural=plural,
resource_version=resource_version)
else:
stream = watch.Watch().stream(crds.list_cluster_custom_object,
group=group, version=version, plural=plural)
for event in stream:
t = event["type"]
obj = event["object"]