Skip to content

Commit

Permalink
fix(kuma-cp): don't add postStart hook to builtin gateway even if `…
Browse files Browse the repository at this point in the history
…waitForDataplaneReady: true` (kumahq#7939)

* always pass "waitForDataplaneReady: false" when generating builtin gateway pod
* bind envoy admin to ::1 and set "waitForDataplaneReady: true" in e2e-multizone

Signed-off-by: Ilya Lobkov <[email protected]>
  • Loading branch information
lobkovilya authored Oct 3, 2023
1 parent fb92b77 commit 2697f09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plugins/runtime/k8s/plugin_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func addGatewayReconcilers(mgr kube_ctrl.Manager, rt core_runtime.Runtime, conve
}

proxyFactory := containers.NewDataplaneProxyFactory(cpURL, caCert, rt.Config().GetEnvoyAdminPort(),
cfg.SidecarContainer.DataplaneContainer, cfg.BuiltinDNS, cfg.SidecarContainer.WaitForDataplaneReady)
cfg.SidecarContainer.DataplaneContainer, cfg.BuiltinDNS, false)

kubeConfig := mgr.GetConfig()

Expand Down
8 changes: 8 additions & 0 deletions test/framework/envs/multizone/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ func SetupAndGetState() []byte {
},
framework.KumaDeploymentOptionsFromConfig(framework.Config.KumaCpConfig.Multizone.KubeZone1)...,
)
if Config.IPV6 {
// if the underneath clusters support IPv6, we'll configure kuma-1 with waitForDataplaneReady feature and
// envoy admin binding to ::1 address
kubeZone1Options = append(kubeZone1Options,
WithEnv("KUMA_RUNTIME_KUBERNETES_INJECTOR_SIDECAR_CONTAINER_WAIT_FOR_DATAPLANE_READY", "true"),
WithEnv("KUMA_BOOTSTRAP_SERVER_PARAMS_ADMIN_ADDRESS", "::1"),
)
}
KubeZone1 = NewK8sCluster(NewTestingT(), Kuma1, Verbose)
go func() {
defer GinkgoRecover()
Expand Down

0 comments on commit 2697f09

Please sign in to comment.