Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for len (0.12 sec)

  1. istioctl/pkg/tag/tag.go

      kubectl rollout restart deployments -n test-ns
    `,
    		SuggestFor: []string{"create"},
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) == 0 {
    				return fmt.Errorf("must provide a tag for modification")
    			}
    			if len(args) > 1 {
    				return fmt.Errorf("must provide a single tag for creation")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/compare/testdata/configdump_diff.json

                                  "prefix_len": 32
                                },
                                {
                                  "address_prefix": "192.168.195.211",
                                  "prefix_len": 32
                                },
                                {
                                  "address_prefix": "192.168.252.206",
                                  "prefix_len": 32
                                },
    Json
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Mar 12 10:02:09 GMT 2024
    - 51.6K bytes
    - Viewed (1)
  3. istioctl/pkg/tag/util.go

    	whs, err := GetWebhooksWithRevision(ctx, client, DefaultRevisionName)
    	if err != nil {
    		return err
    	}
    	if len(whs) == 0 {
    		// no revision with default, no action required.
    		return nil
    	}
    	if len(whs) > 1 {
    		return fmt.Errorf("expected a single webhook for default revision")
    	}
    	webhook := whs[0]
    	for i := range webhook.Webhooks {
    		wh := webhook.Webhooks[i]
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:42 GMT 2024
    - 5.4K bytes
    - Viewed (1)
  4. cni/pkg/plugin/kubernetes.go

    // The sidecar can be a normal container or init in Kubernetes 1.28+
    func containers(pod *v1.Pod) []v1.Container {
    	res := make([]v1.Container, 0, len(pod.Spec.Containers)+len(pod.Spec.InitContainers))
    	res = append(res, pod.Spec.InitContainers...)
    	res = append(res, pod.Spec.Containers...)
    	return res
    }
    
    func (pi PodInfo) String() string {
    	var b strings.Builder
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/configdump/listener.go

    	descrs := []string{}
    	if len(match.ServerNames) > 0 {
    		descrs = append(descrs, fmt.Sprintf("SNI: %s", strings.Join(match.ServerNames, ",")))
    	}
    	if len(match.TransportProtocol) > 0 {
    		descrs = append(descrs, fmt.Sprintf("Trans: %s", match.TransportProtocol))
    	}
    
    	if len(match.ApplicationProtocols) > 0 {
    		found := false
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/ztunnelserver_test.go

    	assert.Equal(t, len(fds), 1)
    	// in theory we should close the fd, but it's just a test..
    
    	assert.Equal(t, m.Payload.(*zdsapi.WorkloadRequest_Add).Add.Uid, uid)
    	// send ack so the server doesn't wait for us.
    	sendAck(ztunClient)
    
    	// second message should be the snap sent message
    	m, fds = readRequest(t, ztunClient)
    	assert.Equal(t, len(fds), 0)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  7. cni/pkg/util/executil.go

    	stdout := &bytes.Buffer{}
    	stderr := &bytes.Buffer{}
    	externalCommand.Stdout = stdout
    	externalCommand.Stderr = stderr
    
    	err := externalCommand.Run()
    
    	if len(stdout.String()) != 0 {
    		log.Debugf("Command output: \n%v", stdout.String())
    	}
    
    	if err != nil || len(stderr.Bytes()) != 0 {
    		log.Debugf("Command error output: \n%v", stderr.String())
    		return errors.New(stderr.String())
    	}
    
    	return nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/envoy/configdump/configdump_test.go

    			err := cw.Prime(cd)
    			if cw.configDump == nil {
    				if tt.wantConfigs != 0 {
    					t.Errorf("wanted some configs loaded but config dump was nil")
    				}
    			} else if len(cw.configDump.Configs) != tt.wantConfigs {
    				t.Errorf("wanted %v configs loaded in got %v", tt.wantConfigs, len(cw.configDump.Configs))
    			}
    			if tt.wantErr {
    				assert.Error(t, err)
    			} else {
    				assert.NoError(t, err)
    			}
    		})
    	}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jan 03 23:08:06 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  9. cni/pkg/install/install_test.go

    			in.cniConfigFilepath = cniConfigFilepath
    
    			if err := file.AtomicCopy(filepath.Join("testdata", c.saFilename), tempDir, c.saFilename); err != nil {
    				t.Fatal(err)
    			}
    
    			if len(c.invalidConfigFilename) > 0 {
    				// Copy an invalid config file into tempDir
    				if err := file.AtomicCopy(filepath.Join("testdata", c.invalidConfigFilename), tempDir, c.cniConfigFilename); err != nil {
    					t.Fatal(err)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  10. istioctl/pkg/proxyconfig/proxyconfig.go

    			if len(args) != 2 {
    				cmd.Println(cmd.UsageString())
    				return fmt.Errorf("rootca-compare requires 2 pods as an argument")
    			}
    			return nil
    		},
    		RunE: func(c *cobra.Command, args []string) error {
    			kubeClient, err := ctx.CLIClient()
    			if err != nil {
    				return err
    			}
    
    			var rootCA1, rootCA2 string
    			if len(args) == 2 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
Back to top