Move diagnostics server running outside of manager #7285
Labels
area/maintenance
Cleanup, refactoring, and other maintenance improvements that don't change functionality.
release/not-required
this is not a hard requirement for the release, it can be considered a "nice to have"
Milestone
Is there an existing issue for this?
Does this enhancement require public documentation?
Problem Statement
To make it possible to not run the diagnostics server as part of the manager, we've added
DisableRunningDiagnosticsServer
flag to theConfig
struct. It's needed in KGO so that we can run a manager without the diagnostics server as otherwise it wouldn't be possible to run multiple instances of the manager.The goal of this issue is to remove this flag and move the logic responsible for running the diagnostics server outside of the manager (from
kubernetes-ingress-controller/internal/manager/run.go
Line 497 in 224424e
kubernetes-ingress-controller/internal/cmd/rootcmd/run.go
Line 40 in 04f900c
Proposed Solution
Move code that runs the diagnostics server out of
manager.Manager
. It can be done similarly to the health check server that's run inkubernetes-ingress-controller/internal/cmd/rootcmd/run.go
Line 40 in 04f900c
Additional information
No response
Acceptance Criteria
DisableRunningDiagnosticsServer
inConfig
struct is removedmanager.Manager
is run without a diagnostics serverThe text was updated successfully, but these errors were encountered: