Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for true (0.23 sec)

  1. cni/pkg/util/podutil_test.go

    			args: args{
    				namespace: namespaceWithAmbientEnabledLabel,
    				pod:       unlabelledPod,
    			},
    			want: true,
    		},
    		{
    			name: "ambient mode enabled for pod",
    			args: args{
    				namespace: unlabelledNamespace,
    				pod:       podWithAmbientEnabledLabel,
    			},
    			want: true,
    		},
    		{
    			name: "ambient mode enabled for both namespace and pod",
    			args: args{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 18:04:40 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  2. cmd/metacache-set.go

    				// We are past the prefix, don't continue.
    				pastPrefix = true
    				return false
    			}
    			if !o.IncludeDirectories && (entry.isDir() || (!o.Versioned && entry.isObjectDir() && entry.isLatestDeletemarker())) {
    				return true
    			}
    			if !entry.isInDir(o.Prefix, o.Separator) {
    				return true
    			}
    			if !o.InclDeleted && entry.isObject() && entry.isLatestDeletemarker() && !entry.isObjectDir() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  3. cmd/erasure-multipart.go

    		})
    		if len(result.Parts) >= maxParts {
    			break
    		}
    	}
    
    	// If listed entries are more than maxParts, we set IsTruncated as true.
    	if len(parts) > len(result.Parts) {
    		result.IsTruncated = true
    		// Make sure to fill next part number marker if IsTruncated is
    		// true for subsequent listing.
    		nextPartNumberMarker := result.Parts[len(result.Parts)-1].PartNumber
    		result.NextPartNumberMarker = nextPartNumberMarker
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/net_test.go

    	ipProto := uint8(unix.IPPROTO_TCP)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("99.9.9.9"),
    		ipProto,
    		podUID,
    		true,
    	).Return(nil)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("2.2.2.2"),
    		ipProto,
    		podUID,
    		true,
    	).Return(nil)
    
    	podIPs := []netip.Addr{netip.MustParseAddr("99.9.9.9"), netip.MustParseAddr("2.2.2.2")}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  5. cni/pkg/ipset/nldeps_linux.go

    	var family uint8
    
    	if v6 {
    		family = unix.AF_INET6
    	} else {
    		family = unix.AF_INET
    	}
    	err := netlink.IpsetCreate(name, "hash:ip", netlink.IpsetCreateOptions{Comments: true, Replace: true, Family: family})
    	if ipsetErr, ok := err.(nl.IPSetError); ok && ipsetErr == nl.IPSET_ERR_EXIST {
    		return nil
    	}
    
    	return err
    }
    
    func (m *realDeps) destroySet(name string) error {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. cmd/erasure-healing.go

    	switch {
    	case errors.Is(erErr, errFileNotFound) || errors.Is(erErr, errFileVersionNotFound):
    		return true
    	case errors.Is(erErr, errFileCorrupt):
    		return true
    	}
    	if erErr == nil {
    		if meta.XLV1 {
    			// Legacy means heal always
    			// always check first.
    			return true
    		}
    		if !meta.Deleted && !meta.IsRemote() {
    			// If xl.meta was read fine but there may be problem with the part.N files.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  7. cmd/iam-store.go

    			return true
    		})
    
    		// update group policy map
    		cache.iamGroupPolicyMap.Range(func(g string, mp MappedPolicy) bool {
    			pset := mp.policySet()
    			if !pset.Contains(policy) {
    				return true
    			}
    			pset.Remove(policy)
    			cache.iamGroupPolicyMap.Store(g, newMappedPolicy(strings.Join(pset.ToSlice(), ",")))
    			return true
    		})
    
    		cache.updatedAt = time.Now()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  8. cmd/xl-storage.go

    	return s.endpoint
    }
    
    func (*xlStorage) Close() error {
    	return nil
    }
    
    func (s *xlStorage) IsOnline() bool {
    	return true
    }
    
    func (s *xlStorage) LastConn() time.Time {
    	return time.Time{}
    }
    
    func (s *xlStorage) IsLocal() bool {
    	return true
    }
    
    // Retrieve location indexes.
    func (s *xlStorage) GetDiskLoc() (poolIdx, setIdx, diskIdx int) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  9. cni/pkg/iptables/iptables_test.go

    		config func(cfg *Config)
    	}{
    		{
    			"default",
    			func(cfg *Config) {
    				cfg.RedirectDNS = true
    			},
    		},
    	}
    	probeSNATipv4 := netip.MustParseAddr("169.254.7.127")
    	probeSNATipv6 := netip.MustParseAddr("e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164")
    
    	for _, tt := range cases {
    		for _, ipv6 := range []bool{false, true} {
    			t.Run(tt.name+"_"+ipstr(ipv6), func(t *testing.T) {
    				cfg := constructTestConfig()
    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. cmd/storage-rest-server.go

    		// or create format.json
    		return true
    	}
    
    	storedDiskID, err := s.getStorage().GetDiskID()
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return false
    	}
    
    	if diskID != storedDiskID {
    		s.writeErrorResponse(w, errDiskStale)
    		return false
    	}
    
    	// If format.json is available and request sent the right disk-id, we allow the request
    	return true
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
Back to top