Commit dc4a511
fix(webhook): remove leading slash prepended to cluster name
The webhook server was prepending "/" to the cluster name extracted from
UserInfo.Extra (e.g. "demo-project-abc" → "/demo-project-abc") as a
workaround for the milo provider registering clusters under a
"/namespace/name" style key.
milo v0.28.1 (pulled in via the go.mod bump in v0.22.0) fixed the
provider to register clusters under just the project name — matching
exactly what the webhook already has from UserInfo.Extra. The workaround
is now counterproductive: the webhook looks up "/demo-project-abc" but
the cluster is registered as "demo-project-abc", so every Gateway
admission webhook call returns "cluster not found" and is rejected.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a238174 commit dc4a511
1 file changed
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 27 | | |
38 | 28 | | |
39 | 29 | | |
| |||
0 commit comments