Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for Korets (0.18 sec)

  1. cni/pkg/plugin/sidecar_redirect.go

    	portsString = strings.TrimSpace(portsString)
    	ports := make([]int, 0)
    	if len(portsString) > 0 {
    		for _, portStr := range splitPorts(portsString) {
    			port, err := parsePort(portStr)
    			if err != nil {
    				return nil, err
    			}
    			ports = append(ports, int(port))
    		}
    	}
    	return ports, nil
    }
    
    func validatePortList(ports string) error {
    	if _, err := parsePorts(ports); err != nil {
    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)
  2. istioctl/pkg/workload/workload_test.go

    		})
    	}
    }
    
    func TestWorkloadEntryToPodPortsMeta(t *testing.T) {
    	cases := []struct {
    		description string
    		ports       map[string]uint32
    		want        string
    	}{
    		{
    			description: "test json marshal",
    			ports: map[string]uint32{
    				"HTTP":  80,
    				"HTTPS": 443,
    			},
    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)
  3. cni/pkg/plugin/plugin_test.go

    }
    
    func Test_dedupPorts(t *testing.T) {
    	type args struct {
    		ports []string
    	}
    	tests := []struct {
    		name string
    		args args
    		want []string
    	}{
    		{
    			name: "No duplicates",
    			args: args{ports: []string{"1234", "2345"}},
    			want: []string{"1234", "2345"},
    		},
    		{
    			name: "Sequential Duplicates",
    			args: args{ports: []string{"1234", "1234", "2345", "2345"}},
    			want: []string{"1234", "2345"},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  4. cni/pkg/iptables/iptables.go

    	// and our unit tests will flake if rules have a nondeterministic ordering.
    	// CLI: -t mangle -A ISTIO_PRERT -s 169.254.7.127 -p tcp -m tcp --dport <PROBEPORT> -j ACCEPT
    	//
    	// DESC: If this is one of our node-probe ports and is from our SNAT-ed/"special" hostside IP, short-circuit out here
    	iptablesBuilder.AppendRule(iptableslog.UndefinedCommand, ChainInpodPrerouting, iptablesconstants.MANGLE,
    		"-s", hostProbeSNAT.String(),
    		"-p", "tcp",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/net_test.go

    		nlDeps:               nlDeps,
    		ipsetDeps:            fakeIPSetDeps,
    	}
    }
    
    func buildConvincingPod(v6IP bool) *corev1.Pod {
    	app1 := corev1.Container{
    		Name: "app1",
    		Ports: []corev1.ContainerPort{
    			{
    				Name:          "foo-port",
    				ContainerPort: 8010,
    			},
    			{
    				Name:          "foo-2-port",
    				ContainerPort: 8020,
    			},
    		},
    		LivenessProbe: &corev1.Probe{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool-decom.go

    			},
    			NoAuditLog: true,
    		})
    	if err != nil {
    		err = fmt.Errorf("decommissionObject: PutObject() %w", err)
    	}
    	return err
    }
    
    // versionsSorter sorts FileInfo slices by version.
    //
    //msgp:ignore versionsSorter
    type versionsSorter []FileInfo
    
    func (v versionsSorter) reverse() {
    	sort.Slice(v, func(i, j int) bool {
    		return v[i].ModTime.Before(v[j].ModTime)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  7. istioctl/pkg/workload/workload.go

    	we := wg.Spec.Template
    	ports := []string{}
    	for _, v := range we.Ports {
    		ports = append(ports, fmt.Sprint(v))
    	}
    	// respect the inbound port annotation and capture all traffic if no inbound ports are set
    	portBehavior := "*"
    	if len(ports) > 0 {
    		portBehavior = strings.Join(ports, ",")
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  8. cmd/signals.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"errors"
    	"net/http"
    	"os"
    	"strings"
    
    	"github.com/coreos/go-systemd/v22/daemon"
    	"github.com/minio/minio/internal/logger"
    )
    
    func handleSignals() {
    	// Custom exit function
    	exit := func(success bool) {
    		if globalLoggerOutput != nil {
    			globalLoggerOutput.Close()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/api.go

    type ZtunnelService struct {
    	Name         string         `json:"name"`
    	Namespace    string         `json:"namespace"`
    	Hostname     string         `json:"hostname"`
    	Addresses    []string       `json:"vips"`
    	Ports        map[string]int `json:"ports"`
    	LoadBalancer *LoadBalancer  `json:"loadBalancer"`
    	Waypoint     *Waypoint      `json:"waypoint"`
    }
    
    type PolicyMatch struct {
    	Namespaces          []StringMatch `json:"namespaces,omitempty"`
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 25 02:16:06 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  10. operator/cmd/mesh/manifest-generate_test.go

    		g.Expect(s).Should(HavePathValueContain(PathValue{"spec.ports.[0]", portVal("grpc-pilot-mtls", 15011, -1)}))
    		g.Expect(s).Should(HavePathValueContain(PathValue{"spec.ports.[1]", portVal("tcp-citadel-grpc-tls", 8060, 8060)}))
    		g.Expect(s).Should(HavePathValueContain(PathValue{"spec.ports.[2]", portVal("tcp-dns", 5353, -1)}))
    
    		for _, o := range objs.kind(name.HPAStr).objSlice {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
Back to top