Enable the config validation webhook in istiod (3 of 3)#19985
Conversation
|
This PR is not ready for review yet. I misclicked when switching to a draft PR. |
261acc8 to
1c2437c
Compare
howardjohn
left a comment
There was a problem hiding this comment.
lgtm overall, just nitpicks and the PR says WIP so not pressing approve yet
1c2437c to
ae85c15
Compare
manifests/istio-control/istio-discovery/templates/deployment.yaml
Outdated
Show resolved
Hide resolved
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
…hook-validation-pilot-use-new-controller-server
| } | ||
|
|
||
| func (c *Config) IsIstiodEnabled() bool { | ||
| return c.Values["global.istiod.enabled"] == "true" |
There was a problem hiding this comment.
| return c.Values["global.istiod.enabled"] == "true" | |
| if c.Operator { | |
| return c.Values["global.istiod.enabled"] != "true" | |
| } | |
| return false |
Values only contains overrides, so we have to rely on the fact that istiod is default on operator and is never set for helm.
| ctx.NewSubTest("key/cert reload"). | ||
| Run(func(t framework.TestContext) { | ||
| addr, done := startGalleyPortForwarderOrFail(t, env, istioNs) | ||
| if i.Settings().IsIstiodEnabled() { |
There was a problem hiding this comment.
| if i.Settings().IsIstiodEnabled() { | |
| cfg := i.Settings() | |
| if cfg.IsIstiodEnabled() { |
…hook-validation-pilot-use-new-controller-server
|
looks like this is passing now except gencheck, but if not I copied this down and made a couple tiny tweaks and it seemed to work if it helps #20292 |
|
Thanks @howardjohn. One-line change to fix a bracket indentation. Now to re-run all of the tests again. |
| NewTest(t). | ||
| Run(func(ctx framework.TestContext) { | ||
| cfg := inst.Settings() | ||
| if cfg.IsIstiodEnabled() { |
There was a problem hiding this comment.
When istiod is enabled, users are unable to manage webhooks through operator?
There was a problem hiding this comment.
This is only temporary. We need to update operator/istioctl to skip the k8s secret check with istiod.
incfly
left a comment
There was a problem hiding this comment.
approval modulo on
- for code freeze
- the issue should be resolved and having webhook test enabled with istiod. (Given we want all these thing in 1.5)
Part 3 of 3 in a set of changes to unify webhook validation.
This PR enables Pilot to provide config validation in the absence of Galley. It includes the following changes: