- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for asList (0.19 sec)
-
istioctl/pkg/completion/completion.go
} func getNamespacesName(kubeClient kube.CLIClient, toComplete string) ([]string, error) { ctx := context.Background() nsList, err := getNamespaces(ctx, kubeClient) if err != nil { return nil, err } var nsNameList []string for _, ns := range nsList { if toComplete == "" || strings.HasPrefix(ns.Name, toComplete) { nsNameList = append(nsNameList, ns.Name) } }
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) -
cni/pkg/install/cniconfig.go
for !file.Exists(cniConfigFilepath) { if strings.HasSuffix(cniConfigFilepath, ".conf") && file.Exists(cniConfigFilepath+"list") { installLog.Infof("%s doesn't exist, but %[1]slist does; Using it as the CNI config file instead.", cniConfigFilepath) cniConfigFilepath += "list" } else if strings.HasSuffix(cniConfigFilepath, ".conflist") && file.Exists(cniConfigFilepath[:len(cniConfigFilepath)-4]) {
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/injector/injector-list.go
} func getNamespaces(ctx context.Context, client kube.CLIClient, istioNamespace string) ([]corev1.Namespace, error) { nslist, err := client.Kube().CoreV1().Namespaces().List(ctx, metav1.ListOptions{}) if err != nil { return []corev1.Namespace{}, err } filtered := filterSystemNamespaces(nslist.Items, istioNamespace) filtered = slices.Filter(filtered, func(namespace corev1.Namespace) bool { return !ambient.InAmbient(&namespace)
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Thu Jan 04 03:08:06 GMT 2024 - 10.4K bytes - Viewed (0) -
istioctl/pkg/workload/workload.go
filePerms = os.FileMode(0o744) ) func Cmd(ctx cli.Context) *cobra.Command { namespace = ctx.Namespace() workloadCmd := &cobra.Command{ Use: "workload", Short: "Commands to assist in configuring and deploying workloads running on VMs and other non-Kubernetes environments", Example: ` # workload group yaml generation istioctl x workload group create # workload entry configuration generation
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Wed Apr 17 20:06:41 GMT 2024 - 25.5K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
defaultNamespace = metav1.NamespaceDefault } obj.Namespace = defaultNamespace } warnings, err := schema.ValidateConfig(*obj) return warnings, err } var errs error if un.IsList() { _ = un.EachListItem(func(item runtime.Object) error { castItem := item.(*unstructured.Unstructured) if castItem.GetKind() == name.ServiceStr { err := v.validateServicePortPrefix(istioNamespace, castItem)
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Mon Jan 22 17:58:52 GMT 2024 - 15K bytes - Viewed (0)