- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for nil (0.19 sec)
-
istioctl/pkg/util/ambient/util.go
) func IsZtunnelPod(client kube.CLIClient, podName, podNamespace string) bool { isZtunnel := strings.HasPrefix(podName, "ztunnel") if client == nil { return isZtunnel } pod, err := client.Kube().CoreV1().Pods(podNamespace).Get(context.Background(), podName, metav1.GetOptions{}) if err != nil { return isZtunnel } if v, ok := pod.Labels["app"]; ok { return v == "ztunnel" } return isZtunnel }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Thu Jan 04 03:08:06 GMT 2024 - 1.7K bytes - Viewed (0) -
istioctl/pkg/tag/util.go
webhooks, err := client.AdmissionregistrationV1().MutatingWebhookConfigurations().List(ctx, metav1.ListOptions{ LabelSelector: label.IoIstioRev.Name, }) if err != nil { return nil, err } return webhooks.Items, nil } // GetWebhooksWithTag returns webhooks tagged with istio.io/tag=<tag>.
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Jan 16 17:43:42 GMT 2024 - 5.4K bytes - Viewed (1) -
istioctl/pkg/writer/compare/sds/util.go
meta, err = secretMetaFromCert([]byte(s.data)) if err != nil { log.Debugf("failed to parse secret resource %s from source %s: %v", s.name, s.source, err) result.Valid = false return result, nil } result.SecretMeta = meta result.Valid = meta.Valid return result, nil } result.Valid = false return result, nil }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Jun 06 15:14:48 GMT 2023 - 6.6K bytes - Viewed (0) -
istioctl/pkg/util/configdump/util.go
var dumpAny *anypb.Any for _, conf := range w.Configs { if conf.TypeUrl == string(sectionTypeURL) { dumpAny = conf } } if dumpAny == nil { return nil, fmt.Errorf("config dump has no configuration type %s", sectionTypeURL) } return dumpAny, nil } func (w *Wrapper) getSections(sectionTypeURL configTypeURL) ([]*anypb.Any, error) { var dumpAny []*anypb.Any for _, conf := range w.Configs {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Sun Dec 24 08:16:26 GMT 2023 - 2.1K bytes - Viewed (0) -
istioctl/pkg/util/testutil/util.go
} if c.ExpectedRegexp != nil && !c.ExpectedRegexp.MatchString(output) { t.Fatalf("Output didn't match for '%s %s'\n got %v\nwant: %v", cmd.Name(), strings.Join(c.Args, " "), output, c.ExpectedRegexp) } if c.GoldenFilename != "" { util.CompareContent(t, []byte(output), c.GoldenFilename) } if c.WantException { if fErr == nil {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 2K bytes - Viewed (0)