Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for isSuperset (0.2 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/sets/set.go

    	} else {
    		walk = s2
    		other = s1
    	}
    	for key := range walk {
    		if other.Has(key) {
    			result.Insert(key)
    		}
    	}
    	return result
    }
    
    // IsSuperset returns true if and only if s1 is a superset of s2.
    func (s1 Set[T]) IsSuperset(s2 Set[T]) bool {
    	for item := range s2 {
    		if !s1.Has(item) {
    			return false
    		}
    	}
    	return true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 19:51:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/devicemanager/manager_test.go

    	as.Equal(2, initCont2Devices.Len())
    	as.Equal(1, normalCont1Devices.Len())
    	as.Equal(1, normalCont2Devices.Len())
    	as.True(initCont2Devices.IsSuperset(initCont1Devices))
    	as.True(initCont2Devices.IsSuperset(normalCont1Devices))
    	as.True(initCont2Devices.IsSuperset(normalCont2Devices))
    	as.Equal(0, normalCont1Devices.Intersection(normalCont2Devices).Len())
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  3. pkg/registry/core/service/strategy.go

    		return out
    	}
    
    	oldPorts := allNodePorts(oldSvc)
    	newPorts := allNodePorts(newSvc)
    
    	// Users can add, remove, or modify ports, as long as they don't add any
    	// net-new NodePorts.
    	return oldPorts.IsSuperset(newPorts)
    }
    
    func needsHCNodePort(svc *api.Service) bool {
    	if svc.Spec.Type != api.ServiceTypeLoadBalancer {
    		return false
    	}
    	if svc.Spec.ExternalTrafficPolicy != api.ServiceExternalTrafficPolicyLocal {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:36 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/devicemanager/manager.go

    		return nil, fmt.Errorf("no healthy devices present; cannot allocate unhealthy devices %s", resource)
    	}
    
    	// Check if all the previously allocated devices are healthy
    	if !healthyDevices.IsSuperset(devices) {
    		return nil, fmt.Errorf("previously allocated devices are no longer healthy; cannot allocate unhealthy devices %s", resource)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
  5. pkg/maps/maps.go

    	return dst
    }
    
    // Contains checks if all key-value pairs in 'subset' are present in 'superset'.
    // It returns true only if every key in 'subset' exists in 'superset' and their corresponding values are equal.
    func Contains[M1, M2 ~map[K]V, K comparable, V comparable](superset M1, subset M2) bool {
    	for key, value := range subset {
    		if supersetValue, ok := superset[key]; !ok || supersetValue != value {
    			return false
    		}
    	}
    	return true
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 01 22:48:35 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

        expectUnchanged();
      }
    
      // retainAll(superset)
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRetainAll_superset() {
        expectReturnsFalse(superset);
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRetainAll_supersetUnsupported() {
        expectReturnsFalseOrThrows(superset);
        expectUnchanged();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/scopes/KtScopeLike.kt

        /**
         * Returns a **superset** of names which current scope may contain.
         * In other words `ALL_NAMES(scope)` is a subset of `scope.getAllNames()`
         */
        public fun getAllPossibleNames(): Set<Name> = withValidityAssertion {
            getPossibleCallableNames() + getPossibleClassifierNames()
        }
    
        /**
         * Returns a **superset** of callable names which current scope may contain.
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

        expectUnchanged();
      }
    
      // retainAll(superset)
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRetainAll_superset() {
        expectReturnsFalse(superset);
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRetainAll_supersetUnsupported() {
        expectReturnsFalseOrThrows(superset);
        expectUnchanged();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. cni/pkg/ipset/ipset.go

    	listEntriesByIP(name string) ([]netip.Addr, error)
    }
    
    // TODO this should actually create v6 and v6 subsets of type `hash:ip`, add them both to a
    // superset of type `list:set` - we can then query the superset directly in iptables (with the same rule),
    // and iptables will be smart enough to pick the correct underlying set (v4 or v6, based on context),
    // reducing the # of rules we need.
    //
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java

      public void testRetainAll_duplicatesKept() {
        E[] array = createSamplesArray();
        array[1] = e0();
        collection = getSubjectGenerator().create(array);
        assertFalse(
            "containsDuplicates.retainAll(superset) should return false",
            collection.retainAll(MinimalCollection.of(createSamplesArray())));
        expectContents(array);
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top