Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 362 for Indexes (0.29 sec)

  1. staging/src/k8s.io/api/batch/v1/generated.proto

    message SuccessPolicyRule {
      // succeededIndexes specifies the set of indexes
      // which need to be contained in the actual set of the succeeded indexes for the Job.
      // The list of indexes must be within 0 to ".spec.completions-1" and
      // must not contain duplicates. At least one element is required.
      // The indexes are represented as intervals separated by commas.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 12:01:28 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  2. cmd/endpoint-ellipses_test.go

    			}
    			if !reflect.DeepEqual(testCase.indexes, gotIndexes) {
    				t.Errorf("Expected %v, got %v", testCase.indexes, gotIndexes)
    			}
    		})
    	}
    }
    
    // Test tests calculating set indexes.
    func TestGetSetIndexes(t *testing.T) {
    	testCases := []struct {
    		args       []string
    		totalSizes []uint64
    		indexes    [][]uint64
    		success    bool
    	}{
    		// Invalid inputs.
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  3. pkg/controller/job/indexed_job_utils_test.go

    			if diff := cmp.Diff(tc.wantStatusIntervals, gotStatusIntervals); diff != "" {
    				t.Errorf("Unexpected completed indexes from status (-want,+got):\n%s", diff)
    			}
    			if diff := cmp.Diff(tc.wantIntervals, gotIntervals); diff != "" {
    				t.Errorf("Unexpected completed indexes (-want,+got):\n%s", diff)
    			}
    		})
    	}
    }
    
    func TestIsIndexFailed(t *testing.T) {
    	logger, _ := ktesting.NewTestContext(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  4. src/text/template/funcs.go

    // argument must be a string, slice, or array.
    func slice(item reflect.Value, indexes ...reflect.Value) (reflect.Value, error) {
    	item = indirectInterface(item)
    	if !item.IsValid() {
    		return reflect.Value{}, fmt.Errorf("slice of untyped nil")
    	}
    	if len(indexes) > 3 {
    		return reflect.Value{}, fmt.Errorf("too many slice indexes: %d", len(indexes))
    	}
    	var cap int
    	switch item.Kind() {
    	case reflect.String:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. pilot/pkg/model/typed_xds_cache_test.go

    		},
    	}
    
    	c := newTypedXdsCache[uint64]()
    
    	cache := c.(*lruCache[uint64])
    
    	assert.Equal(t, cache.store.Len(), 0)
    	assert.Equal(t, cache.indexLength(), 0)
    
    	// adding the entry populates the indexes
    	c.Add(firstEntry.Key(), firstEntry, req, res)
    
    	assert.Equal(t, cache.store.Len(), 1)
    	assert.Equal(t, cache.indexLength(), 2)
    	assert.Equal(t, cache.configIndexSnapshot(), map[ConfigHash]sets.Set[uint64]{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 29 20:35:31 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. pilot/pkg/xds/ads_test.go

    	}
    	addService := func(ns string, indexes ...int) {
    		var hostnames []string
    		for _, i := range indexes {
    			hostnames = append(hostnames, fmt.Sprintf("svc%d%s", i, svcSuffix))
    		}
    		addServiceByNames(ns, hostnames...)
    	}
    
    	addServiceInstance := func(hostname host.Name, indexes ...int) {
    		for _, i := range indexes {
    			s.MemRegistry.AddEndpoint(hostname, "http-main", 2080, "192.168.1.10", i)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. src/slices/iter.go

    // The indexes range in the usual order, from 0 through len(s)-1.
    func All[Slice ~[]E, E any](s Slice) iter.Seq2[int, E] {
    	return func(yield func(int, E) bool) {
    		for i, v := range s {
    			if !yield(i, v) {
    				return
    			}
    		}
    	}
    }
    
    // Backward returns an iterator over index-value pairs in the slice,
    // traversing it backward. The indexes range from len(s)-1 down to 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. pkg/controller/job/metrics/metrics.go

    		}, []string{"event"})
    
    	// JobFinishedIndexesTotal records the number of finished indexes.
    	JobFinishedIndexesTotal = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Subsystem: JobControllerSubsystem,
    			Name:      "job_finished_indexes_total",
    			Help: `The number of finished indexes. Possible values for the
    			status label are: "succeeded", "failed". Possible values for the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 17:25:15 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. pkg/api/job/warnings.go

    		if completions > completionsSoftLimit && parallelism > parallelismSoftLimitForUnlimitedCompletions {
    			msg := "In Indexed Jobs with a number of completions higher than 10^5 and a parallelism higher than 10^4, Kubernetes might not be able to track completedIndexes when a big number of indexes fail"
    			warnings = append(warnings, fmt.Sprintf("%s: %s", path, msg))
    		}
    	}
    	var oldPodTemplate *core.PodTemplateSpec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 11:44:07 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. doc/next/6-stdlib/3-iter.md

    The new [iter] package provides the basic definitions for working with
    user-defined iterators.
    
    The [slices] package adds several functions that work with iterators:
    - [All](/pkg/slices#All) returns an iterator over slice indexes and values.
    - [Values](/pkg/slices#Values) returns an iterator over slice elements.
    - [Backward](/pkg/slices#Backward) returns an iterator that loops over
      a slice backward.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:13 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top