Skip to content

Conversation

vriabyk
Copy link

@vriabyk vriabyk commented Aug 8, 2025

This PR introduces a new controller configuration flag. When enabled, this flag prevents the controller from updating the status field of Ingress resources. By default, status updates remain enabled.

New flag:

--disable-ingress-status-update (boolean, default: false)

When set, the controller will skip updating the LoadBalancer status field in managed Ingress resources.
Useful for scenarios where another controller or external process manages Ingress status, or when status updates are not desired. It won't set status field and it will be just empty:

$ k get ingress test-ingress-99999 -o jsonpath='{.status}' | jq . -r
{
  "loadBalancer": {}
}

Code changes:

  • Added the DisableIngressStatusUpdate field to the configuration struct.
  • Passed the flag through the controller and status update logic.
  • Updated the UpdateStatus method to respect the flag.
  • Updated documentation

The flag is now listed in the arguments table and has a dedicated section describing its usage and example. If the flag is not specified, status updates are enabled by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant