- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 103 for len (0.44 sec)
-
cni/pkg/plugin/plugin_test.go
pod.ObjectMeta.Annotations[sidecarStatusKey] = "true" mockIntercept := testDoAddRun(t, buildMockConf(false, ""), testNSName, pod, ns) if len(mockIntercept.lastRedirect) == 0 { t.Fatalf("expected nsenterFunc to be called") } r := mockIntercept.lastRedirect[len(mockIntercept.lastRedirect)-1] if r.includeInboundPorts != "*" { t.Fatalf("expect includeInboundPorts has value '*' set by istio, actual %v", r.includeInboundPorts)
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Sat Feb 10 00:31:55 GMT 2024 - 17.5K bytes - Viewed (0) -
cni/pkg/install/cniconfig.go
} else if strings.HasSuffix(cniConfigFilepath, ".conflist") && file.Exists(cniConfigFilepath[:len(cniConfigFilepath)-4]) { installLog.Infof("%s doesn't exist, but %s does; Using it as the CNI config file instead.", cniConfigFilepath, cniConfigFilepath[:len(cniConfigFilepath)-4]) cniConfigFilepath = cniConfigFilepath[:len(cniConfigFilepath)-4] } else {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 10.4K bytes - Viewed (0) -
istioctl/pkg/dashboard/dashboard.go
if err != nil { return fmt.Errorf("failed to create k8s client: %v", err) } if labelSelector == "" && len(args) < 1 { c.Println(c.UsageString()) return fmt.Errorf("specify a pod or --selector") } if labelSelector != "" && len(args) > 0 { c.Println(c.UsageString()) return fmt.Errorf("name cannot be provided when a selector is specified") }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Mon Apr 15 01:29:35 GMT 2024 - 20.5K bytes - Viewed (0) -
istioctl/pkg/completion/completion.go
return func(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { if len(args) != 0 { return nil, cobra.ShellCompDirectiveNoFileComp } podsName, err := getPodsNameInDefaultNamespace(ctx, toComplete) if err != nil { return nil, cobra.ShellCompDirectiveNoFileComp }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 4.9K bytes - Viewed (0) -
istioctl/pkg/tag/tag_test.go
webhooksAfter, _ := client.AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.Background(), metav1.ListOptions{}) if len(webhooksAfter.Items) != len(tc.webhooksAfter.Items) { t.Fatalf("expected %d after running, got %d", len(tc.webhooksAfter.Items), len(webhooksAfter.Items)) } }) } } func TestSetTagErrors(t *testing.T) { tcs := []struct { name string
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Nov 17 22:41:06 GMT 2023 - 8.7K bytes - Viewed (0) -
istioctl/pkg/writer/pilot/status.go
endpointStatus: eds, extensionconfigStatus: ecds, }) if len(fullStatus) == 0 { return nil, nil, fmt.Errorf("no proxies found (checked %d istiods)", len(drs)) } sort.Slice(fullStatus, func(i, j int) bool { return fullStatus[i].proxyID < fullStatus[j].proxyID }) } } if len(mappedResp) > 0 { mresp, err := json.MarshalIndent(mappedResp, "", " ") if err != nil {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Mar 15 04:16:55 GMT 2024 - 6.1K bytes - Viewed (0) -
cni/pkg/nodeagent/ztunnelserver.go
defer c.mu.Unlock() delete(c.connectionSet, conn) if c.latestConn == conn { c.latestConn = nil } ztunnelConnected.RecordInt(int64(len(c.connectionSet))) } // this is used in tests // nolint: unused func (c *connMgr) len() int { c.mu.Lock() defer c.mu.Unlock() return len(c.connectionSet) } type ztunnelServer struct { listener *net.UnixListener // connections to pod delivered map
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 12.4K bytes - Viewed (0) -
operator/cmd/mesh/profile-list.go
} // profileList list all the builtin profiles. func profileList(cmd *cobra.Command, plArgs *profileListArgs) error { profiles, err := helm.ListProfiles(plArgs.manifestsPath) if err != nil { return err } if len(profiles) == 0 { cmd.Println("No profiles available.") } else { cmd.Println("Istio configuration profiles:") sort.Strings(profiles) for _, profile := range profiles { cmd.Printf(" %s\n", profile) }
Go - Registered: Wed Mar 20 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 1.9K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate.go
istioctl manifest generate --set "values.sidecarInjectorWebhook.injectedAnnotations.container\.apparmor\.security\.beta\.kubernetes\.io/istio-proxy=runtime/default" `, Args: func(cmd *cobra.Command, args []string) error { if len(args) != 0 { return fmt.Errorf("generate accepts no positional arguments, got %#v", args) } return nil }, RunE: func(cmd *cobra.Command, args []string) error { if kubeClientFunc == nil {
Go - Registered: Wed Mar 20 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 8.5K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/clusters.go
} } _ = w.Flush() return nil } func parseClusterStatuses(input map[string][]byte) (map[string][]cluster.DebugInfo, error) { statuses := make(map[string][]cluster.DebugInfo, len(input)) for istiodKey, bytes := range input { var parsed []cluster.DebugInfo if err := json.Unmarshal(bytes, &parsed); err != nil { return nil, err } statuses[istiodKey] = parsed } return statuses, nil
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 2.3K bytes - Viewed (0)