- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for parsedSelector (0.29 sec)
-
pkg/controller/podautoscaler/horizontal.go
if a.hpaSelectors.SelectorExists(hpaKey) { // Update HPA selector only if the HPA was registered in enqueueHPA. a.hpaSelectors.PutSelector(hpaKey, parsedSelector) } a.hpaSelectorsMux.Unlock() pods, err := a.podLister.Pods(hpa.Namespace).List(parsedSelector) if err != nil { return nil, err } selectingHpas := a.hpasControllingPodsUnderSelector(pods) if len(selectingHpas) > 1 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 63.6K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal_test.go
selector := action.(core.ListAction).GetListRestrictions().Labels parsedSelector := strings.Split(selector.String(), "=") if len(parsedSelector) > 1 { labelSet[parsedSelector[0]] = parsedSelector[1] podNamePrefix = parsedSelector[1] } podMetric := metricsapi.PodMetrics{ ObjectMeta: metav1.ObjectMeta{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 199.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/labels/selector.go
// 5. A requirement with just !KEY requires that the KEY not exist. func Parse(selector string, opts ...field.PathOption) (Selector, error) { parsedSelector, err := parse(selector, field.ToPath(opts...)) if err == nil { return parsedSelector, nil } return nil, err } // parse parses the string representation of the selector and returns the internalSelector struct.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 31.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/DefaultVersionSelectorSchemeTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/DefaultVersionedComponentChooserTest.groovy
def selectedComponentResult = Mock(ComponentSelectionContext) when: chooser.selectNewestMatchingComponent([c, d, a, b], selectedComponentResult, versionSelectorScheme.parseSelector("1.+"), versionSelectorScheme.parseSelector("1.3"), consumerAttributes) then: _ * componentSelectionRules.rules >> [] 1 * selectedComponentResult.getContentFilter() >> null
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 15 17:38:42 UTC 2024 - 17.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dependencies/DefaultResolvedVersionConstraint.java
isStrict = !strictVersion.isEmpty(); String version = isStrict ? strictVersion : requiredVersion; this.requiredVersionSelector = scheme.parseSelector(version); this.preferredVersionSelector = preferredVersion.isEmpty() ? null : scheme.parseSelector(preferredVersion); if (isStrict) { VersionSelector rejectionForStrict = getRejectionForStrict(version, scheme);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 5.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/MavenVersionSelectorSchemeTest.groovy
def mapper = new MavenVersionSelectorScheme(defaultMatcher) def "translates to maven syntax"() { given: def selector = defaultMatcher.parseSelector(input) expect: mapper.renderSelector(selector) == output where: input | output "]2,3]" | "(2,3]" "[2,3[" | "[2,3)"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/CachingVersionSelectorScheme.java
this.delegate = delegate; } @Override public VersionSelector parseSelector(String selectorString) { VersionSelector versionSelector = cachedSelectors.get(selectorString); if (versionSelector == null) { versionSelector = delegate.parseSelector(selectorString); cachedSelectors.put(selectorString, versionSelector); } return versionSelector;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/fields/selector_test.go
} func TestDeterministicParse(t *testing.T) { s1, err := ParseSelector("x=a,a=x") s2, err2 := ParseSelector("a=x,x=a") if err != nil || err2 != nil { t.Errorf("Unexpected parse error") } if s1.String() != s2.String() { t.Errorf("Non-deterministic parse") } } func expectMatch(t *testing.T, selector string, ls Set) { lq, err := ParseSelector(selector) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 27 08:00:38 UTC 2017 - 11.2K bytes - Viewed (0) -
pkg/test/framework/label/filter.go
return Selector{ present: NewSet(present...), absent: NewSet(absent...), } } var userLabelRegex = regexp.MustCompile(`^[a-zA-Z][a-zA-Z0-9_]*(\.[a-zA-Z0-9_]+)*$`) // ParseSelector parses and returns a new instance of Selector. func ParseSelector(s string) (Selector, error) { var present, absent []Instance parts := strings.Split(s, ",") for _, p := range parts { if len(p) == 0 { continue }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 2.9K bytes - Viewed (0)