Skip to content

Commit

Permalink
Remove resource not found warning (#127)
Browse files Browse the repository at this point in the history
- Should not warn on resource not found as there are many normal cases
  where the resource will not exist.
  • Loading branch information
jkupferer authored Feb 11, 2025
1 parent b3c8b2f commit d3190b2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions operator/resourcehandle.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,11 +848,6 @@ async def get_resource_states(self, logger: kopf.ObjectLogger) -> List[Mapping]:
api_version=api_version, kind=kind, name=name, namespace=namespace,
)
resource_states.append(resource)
if not resource:
if namespace:
logger.warning(f"Mangaged resource {api_version} {kind} {name} in {namespace} not found.")
else:
logger.warning(f"Mangaged resource {api_version} {kind} {name} not found.")
return resource_states

async def handle_delete(self, logger: kopf.ObjectLogger) -> None:
Expand Down

0 comments on commit d3190b2

Please sign in to comment.