Skip to content

MEDIUM: config: add disable-ingress-status-update configuration flag #731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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