Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 284 for string (0.37 sec)

  1. istioctl/pkg/tag/tag_test.go

    			}
    		})
    	}
    }
    
    func TestSetTagErrors(t *testing.T) {
    	tcs := []struct {
    		name           string
    		tag            string
    		revision       string
    		webhooksBefore admitv1.MutatingWebhookConfigurationList
    		namespaces     corev1.NamespaceList
    		outputMatches  []string
    		error          string
    	}{
    		{
    			name:     "TestErrorWhenRevisionWithNameCollision",
    			tag:      "revision",
    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)
  2. istioctl/pkg/completion/completion.go

    	if err != nil {
    		return nil, err
    	}
    
    	var podsName []string
    	for _, pod := range podList.Items {
    		if toComplete == "" || strings.HasPrefix(pod.Name, toComplete) {
    			podsName = append(podsName, pod.Name)
    		}
    	}
    
    	return podsName, nil
    }
    
    func ValidPodsNameArgs(ctx cli.Context) func(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
    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)
  3. cni/pkg/install/cniconfig.go

    	cniNetDir          string
    	kubeconfigFilename string
    	logLevel           string
    	k8sServiceHost     string
    	k8sServicePort     string
    	k8sNodeName        string
    	logUDSAddress      string
    	cniEventAddress    string
    }
    
    func getPluginConfig(cfg *config.InstallConfig) pluginConfig {
    	return pluginConfig{
    		mountedCNINetDir: cfg.MountedCNINetDir,
    		cniConfName:      cfg.CNIConfName,
    		chainedCNIPlugin: cfg.ChainedCNIPlugin,
    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)
  4. operator/cmd/mesh/manifest-generate.go

    	// Filter is the list of components to render
    	Filter []string
    }
    
    var kubeClientFunc func() (kube.CLIClient, error)
    
    func (a *ManifestGenerateArgs) String() string {
    	var b strings.Builder
    	b.WriteString("InFilenames:   " + fmt.Sprint(a.InFilenames) + "\n")
    	b.WriteString("OutFilename:   " + a.OutFilename + "\n")
    	b.WriteString("Set:           " + fmt.Sprint(a.Set) + "\n")
    	b.WriteString("Force:         " + fmt.Sprint(a.Force) + "\n")
    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)
  5. cni/test/install_cni.go

      }
    }
    `
    )
    
    func getEnv(key, fallback string) string {
    	if value, ok := os.LookupEnv(key); ok {
    		return value
    	}
    	return fallback
    }
    
    func setEnv(key, value string, t *testing.T) {
    	t.Helper()
    	err := os.Setenv(key, value)
    	if err != nil {
    		t.Fatalf("Couldn't set environment variable, err: %v", err)
    	}
    }
    
    func mktemp(dir, prefix string, t *testing.T) string {
    	t.Helper()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  6. operator/cmd/mesh/operator_test.go

    	if got, err = yaml.JSONToYAML([]byte(gotJSON)); err != nil {
    		t.Fatal(err)
    	}
    	if want, err = yaml.JSONToYAML([]byte(wantJSON)); err != nil {
    		t.Fatal(err)
    	}
    
    	if diff := util.YAMLDiff(string(want), string(got)); diff != "" {
    		t.Fatalf("diff: %s", diff)
    	}
    }
    
    // TODO: rewrite this with running the actual top level command.
    func TestOperatorInit(t *testing.T) {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  7. istioctl/pkg/util/common.go

    	Err error
    }
    
    func (c CommandParseError) Error() string {
    	return c.Err.Error()
    }
    
    // Confirm waits for a user to confirm with the supplied message.
    func Confirm(msg string, writer io.Writer) bool {
    	for {
    		_, _ = fmt.Fprintf(writer, "%s ", msg)
    		var response string
    		_, err := fmt.Scanln(&response)
    		if err != nil {
    			return false
    		}
    		switch strings.ToUpper(response) {
    		case "Y", "YES":
    			return true
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  8. manifests/charts/gateway/values.schema.json

                      "type": "string"
                    },
                    "memory": {
                      "type": "string"
                    }
                  }
                },
                "requests": {
                  "type": "object",
                  "properties": {
                    "cpu": {
                      "type": "string"
                    },
                    "memory": {
                      "type": "string"
                    }
    Json
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jan 18 16:33:33 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  9. cni/pkg/iptables/iptables_test.go

    		t.Fatal(err)
    	}
    
    	compareToGolden(t, false, tt.name, ext.ExecutedAll)
    }
    
    func ipstr(ipv6 bool) string {
    	if ipv6 {
    		return "ipv6"
    	}
    	return "ipv4"
    }
    
    func compareToGolden(t *testing.T, ipv6 bool, name string, actual []string) {
    	t.Helper()
    	gotBytes := []byte(strings.Join(actual, "\n"))
    	goldenFile := filepath.Join("testdata", name+".golden")
    	if ipv6 {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  10. common/scripts/metallb-native.yaml

        - jsonPath: .spec.ipAddressPools
          name: IPAddressPools
          type: string
        - jsonPath: .spec.ipAddressPoolSelectors
          name: IPAddressPool Selectors
          type: string
        - jsonPath: .spec.peers
          name: Peers
          type: string
        - jsonPath: .spec.nodeSelectors
          name: Node Selectors
          priority: 10
          type: string
        name: v1beta1
        schema:
          openAPIV3Schema:
    Others
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Feb 23 23:56:31 GMT 2024
    - 63.9K bytes
    - Viewed (0)
Back to top