- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for Split (0.26 sec)
-
istioctl/pkg/workload/workload_test.go
description: "Invalid command args - missing service name and namespace", args: strings.Split("group create", " "), expectedException: true, expectedOutput: "Error: expecting a workload name\n", }, { description: "Invalid command args - missing service name", args: strings.Split("group create -n bar", " "), expectedException: true,
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Mar 27 16:59:05 GMT 2024 - 14.6K bytes - Viewed (0) -
istioctl/pkg/waypoint/waypoint_test.go
gateways []*gateway.Gateway expectedOutFile string }{ { name: "no gateways", args: strings.Split("list", " "), gateways: []*gateway.Gateway{}, expectedOutFile: "no-gateway", }, { name: "default namespace gateway", args: strings.Split("list", " "), gateways: []*gateway.Gateway{ makeGateway(constants.DefaultNamespaceWaypoint, "default", true, true),
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Apr 04 15:53:09 GMT 2024 - 4.4K bytes - Viewed (0) -
istioctl/pkg/util/handlers/handlers_test.go
namespace: "namespace", wantPodName: "gateway.gateway.networking.k8s.io/istiod", wantNamespace: "istio-system", }, } for _, tt := range tests { t.Run(strings.Split(tt.proxyName, ".")[0], func(t *testing.T) { gotPodName, gotNamespace := InferPodInfo(tt.proxyName, tt.namespace) if gotPodName != tt.wantPodName || gotNamespace != tt.wantNamespace {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jun 09 18:17:49 GMT 2023 - 6.6K bytes - Viewed (0) -
cni/pkg/plugin/sidecar_redirect.go
func validateCIDRList(cidrs string) error { if len(cidrs) > 0 { for _, cidr := range strings.Split(cidrs, ",") { if _, err := netip.ParsePrefix(cidr); err != nil { return fmt.Errorf("failed parsing cidr '%s': %v", cidr, err) } } } return nil } func splitPorts(portsString string) []string { return strings.Split(portsString, ",") } func dedupPorts(ports []string) []string {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 10.6K bytes - Viewed (0) -
cni/pkg/log/uds_test.go
// For each level, there should be two lines, one from direct log, // the other one from UDS server wantLevels := []string{"debug", "info", "warn", "error", "debug", "info", "warn", "error"} gotLogs := strings.Split( strings.TrimSuffix(string(out), "\n"), "\n") if want, got := len(wantLevels), len(gotLogs); want != got { t.Fatalf("Number of logs want %v, got %v logs: %v", want, got, gotLogs) } for i, l := range gotLogs {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Mar 16 00:20:01 GMT 2024 - 2.5K bytes - Viewed (0) -
istioctl/pkg/config/config_test.go
) func TestConfigList(t *testing.T) { cases := []testutil.TestCase{ //{ // case 0 // Args: strings.Split("get istioNamespace", " "), // ExpectedRegexp: regexp.MustCompile("Configure istioctl defaults"), // WantException: false, //}, { // case 1 Args: strings.Split("list", " "), ExpectedOutput: `FLAG VALUE FROM authority default
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 1.8K bytes - Viewed (0) -
operator/cmd/mesh/profile-diff_test.go
shouldFail: false, }, } l := clog.NewConsoleLogger(os.Stdout, os.Stderr, nil) for i, c := range cases { t.Run(fmt.Sprintf("case %d %q", i, c.args), func(t *testing.T) { args := strings.Split(c.args, " ") setFlag := fmt.Sprintf("installPackagePath=%s", snapshotCharts) by := &bytes.Buffer{} _, err := profileDiffInternal(args[len(args)-2], args[len(args)-1], []string{setFlag}, by, l)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Jan 10 05:10:03 GMT 2024 - 3.6K bytes - Viewed (1) -
istioctl/pkg/checkinject/checkinject.go
}, ValidArgsFunction: completion.ValidPodsNameArgs(ctx), } cmd.PersistentFlags().StringVarP(&labelPairs, "labels", "l", "", "Check namespace and label pairs injection status, split multiple labels by commas") return cmd } func printCheckInjectorResults(writer io.Writer, was []webhookAnalysis) error { if len(was) == 0 { fmt.Fprintf(writer, "ERROR: no Istio injection hooks present.\n")
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 9.3K bytes - Viewed (0) -
operator/cmd/mesh/manifest_shared_test.go
// runCommand runs the given command string. func runCommand(command string) (string, error) { var out bytes.Buffer rootCmd := GetRootCmd(cli.NewFakeContext(&cli.NewFakeContextOption{ Version: "25", }), strings.Split(command, " ")) rootCmd.SetOut(&out) err := rootCmd.Execute() return out.String(), err } // cleanTestCluster resets the test cluster. func cleanTestCluster() error {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Feb 20 22:39:28 GMT 2024 - 11.7K bytes - Viewed (1) -
operator/cmd/mesh/operator-init.go
} if err := operatorutil.CreateNamespace(kubeClient.Kube(), oiArgs.common.operatorNamespace, "", opts.DryRun); err != nil { l.LogAndFatal(err) } // create watched namespaces namespaces := strings.Split(oiArgs.common.watchedNamespaces, ",") // if the namespace in the CR is provided, consider creating it too. if istioNamespace != "" { namespaces = append(namespaces, istioNamespace) } for _, ns := range namespaces {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 6.2K bytes - Viewed (0)