- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ShouldRewriteAppHTTPProbers (0.32 sec)
-
pkg/kube/inject/app_probe.go
"istio.io/api/annotation" "istio.io/istio/pilot/cmd/pilot-agent/status" "istio.io/istio/pkg/log" "istio.io/istio/pkg/slices" ) // ShouldRewriteAppHTTPProbers returns if we should rewrite apps' probers config. func ShouldRewriteAppHTTPProbers(annotations map[string]string, specSetting bool) bool { if annotations != nil { if value, ok := annotations[annotation.SidecarRewriteAppHTTPProbers.Name]; ok {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Aug 04 15:06:24 UTC 2023 - 8.4K bytes - Viewed (0) -
pkg/kube/inject/app_probe_test.go
specSetting: true, annotations: map[string]string{annotation.SidecarRewriteAppHTTPProbers.Name: "false"}, expected: false, }, } { got := ShouldRewriteAppHTTPProbers(tc.annotations, tc.specSetting) want := tc.expected if got != want { t.Errorf("[%v] failed, want %v, got %v", tc.name, want, got) } } } func TestDumpAppGRPCProbers(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Aug 04 15:06:24 UTC 2023 - 8.6K bytes - Viewed (0) -
pkg/kube/inject/webhook.go
} return nil } func applyRewrite(pod *corev1.Pod, req InjectionParameters) error { sidecar := FindSidecar(pod) if sidecar == nil { return nil } rewrite := ShouldRewriteAppHTTPProbers(pod.Annotations, req.valuesConfig.asStruct.GetSidecarInjectorWebhook().GetRewriteAppHTTPProbe().GetValue()) // We don't have to escape json encoding here when using golang libraries. if rewrite {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 17:59:39 UTC 2024 - 42.2K bytes - Viewed (0)