Skip to content

Commit

Permalink
fix(annotation-discovery): fix when annotation enabled true switch to…
Browse files Browse the repository at this point in the history
… false don't delete monitor
  • Loading branch information
SQuent committed Jul 4, 2024
1 parent 43939c2 commit a2ab844
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kuma_ingress_watcher/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def process_ingressroutes(item):

if not enabled:
logger.info(f"Monitoring for {name} is disabled via annotations.")
delete_monitor(monitor_name)
return

if len(routes) == 1:
Expand Down

0 comments on commit a2ab844

Please sign in to comment.