Webhook server and metrics server use different values to turn off
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- networking
Direzione di ricerca
Start by tracing webhook.Options.Host and Port alongside the metrics, health-probe, and pprof bind-address options. Compare their current defaults and disable behavior, then resolve which compatibility path the project wants. Done means one documented convention is implemented with the stated defaults and deprecation behavior preserved.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What
controller-runtime turns its servers off in two different ways:
| Server | Option | Type | Turns off with | What 0 does |
|---|---|---|---|---|
| Metrics | metricsserver.Options.BindAddress |
string | "0" |
turns it off |
| Health probe | manager.Options.HealthProbeBindAddress |
string | "0" or "" |
turns it off |
| pprof | manager.Options.PprofBindAddress |
string | "0" or "" |
turns it off |
| Webhook | webhook.Options.Port |
int | any value below zero, documented as -1 |
uses the default 9443 |
So a project that turns everything off locally passes
--metrics-bind-address=0 --health-probe-bind-address=0 --webhook-port=-1.
Users who expect --webhook-port=0 to work like the other flags get a
webhook server on 9443 instead, with no warning.
Why it matters
It is not homogeneous, which makes it very difficult and confusing for end users. Ideally, everything should work in the same way.
Having a clear convention here would be very helpful in reducing confusion and avoiding misleading behavior.
Why the webhook server cannot use 0 as it is
webhook.Options.Port is an int, and 0 is its zero value, so an unset portis 0. If 0 turned the server off, every caller that relies on the default 9443 would silently stop serving webhooks which can be harder yet for end users.
Proposal
Use one format for every server: replace the webhook server's Host and Port
with a BindAddress, the same option the metrics server and the health probe
already have.
- add
webhook.Options.BindAddress:"0"turns the webhook server off, and any
other value is the address to listen on, such as:9443; - deprecate
HostandPortin the same release, and remove them in a later
one. Until then,Port < 0keeps turning the server off and an unset
BindAddresskeeps today's default,:9443, so nothing breaks; - document the rule once for all servers:
"0"turns the server off.
If replacing Port is too large a change, an alternative is to make it a
*int, so that an unset port keeps the default 9443 and 0 turns the server
off, matching the other servers.
- Lingua principale
- Go
- Stelle
- 3k
- Fork
- 1.3k
- Merge medio
- 1g 7h
- PR unite (30g)
- 48
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di kubernetes-sigs/controller-runtime
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
kubernetes-sigs/controller-runtime#3704 ·
I maintainer di solito rispondono entro 1 giorno
-
lifecycle/rotten
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
kubernetes-sigs/controller-runtime#3537 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Read-your-writes consistency is not applied to unstructured objects written with Update or PatchForse già presa @7616e5a9c573ffb221843a498885ab0f l’ha presa 1 giorno fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 25/100
kubernetes-sigs/controller-runtime#3702 ·
I maintainer di solito rispondono entro 1 giorno
-
Client and DynamicRESTMapper keep a kind's old scope after its CRD is recreated with a different `scope`Forse già presa @AdamMagued l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
kubernetes-sigs/controller-runtime#3671 ·
I maintainer di solito rispondono entro 1 giorno
-
ReadYourWrite doesn't correctly deal with mutating requests removing the last finalizerForse già presa @AdamMagued l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
kubernetes-sigs/controller-runtime#3670 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di kubernetes-sigs/controller-runtime
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
expr-lang/expr#1037 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
provider-key submission
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
opentofu/registry#6740 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nightgauge/nightgauge#3713 ·
I maintainer di solito rispondono entro 1 giorno
-
fix: restore GitHub issue templates and check their license headersForse già presa @slievrly l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni