Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 89 for expectedIds (0.2 sec)

  1. pkg/controller/replicaset/replica_set_test.go

    				// all of them have been observed.
    				expectedPods = replicas - activePods
    				if expectedPods > int32(burstReplicas) {
    					expectedPods = int32(burstReplicas)
    				}
    				// This validates the ReplicaSet manager sync actually created pods
    				err := validateSyncReplicaSet(&fakePodControl, int(expectedPods), 0, 0)
    				if err != nil {
    					t.Fatal(err)
    				}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  2. internal/hash/reader.go

    	MD5, err := hex.DecodeString(md5Hex)
    	if err != nil {
    		return nil, BadDigest{ // TODO(aead): Return an error that indicates that an invalid ETag has been specified
    			ExpectedMD5:   md5Hex,
    			CalculatedMD5: "",
    		}
    	}
    	SHA256, err := hex.DecodeString(sha256Hex)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/serviceimportcache_test.go

    func (ic *serviceImportCacheImpl) checkServiceInstances(t *testing.T) {
    	t.Helper()
    
    	si := ic.getServiceImport(t)
    
    	var expectedIPs []string
    	expectedServiceCount := 1
    	expectMCSService := false
    	if si != nil && si.Spec.Type == mcsapi.ClusterSetIP && len(si.Spec.IPs) > 0 {
    		expectedIPs = si.Spec.IPs
    		expectedServiceCount = 2
    		expectMCSService = true
    	}
    
    	instances := ic.getProxyServiceTargets()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 18:50:38 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			}
    			if diff := cmp.Diff(test.want, res); diff != "" {
    				t.Errorf("Unexpected status (-want, +got):\n%s", diff)
    			}
    			if len(deletedPodNames) != len(test.expectedPods) {
    				t.Errorf("expected %v pods, got %v.", len(test.expectedPods), len(deletedPodNames))
    			}
    			if diff := cmp.Diff(sets.List(patchedPodNames), sets.List(deletedPodNames)); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/policy/v1beta1/types.go

    	DesiredHealthy int32 `json:"desiredHealthy" protobuf:"varint,5,opt,name=desiredHealthy"`
    
    	// total number of pods counted by this disruption budget
    	ExpectedPods int32 `json:"expectedPods" protobuf:"varint,6,opt,name=expectedPods"`
    
    	// Conditions contain conditions for PDB. The disruption controller sets the
    	// DisruptionAllowed condition. The following are known values for the reason field
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  6. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    		Spec:       pdb.Spec,
    		Status: policy.PodDisruptionBudgetStatus{
    			DisruptionsAllowed: 1,
    			CurrentHealthy:     3,
    			DesiredHealthy:     3,
    			ExpectedPods:       3,
    		},
    	}
    
    	// Nothing in Spec changes: OK
    	Strategy.PrepareForUpdate(ctx, newPdb, pdb)
    	errs = Strategy.ValidateUpdate(ctx, newPdb, pdb)
    	if len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    		}
    	}
    }
    
    func (env *testEnv) validateBind(
    	t *testing.T,
    	pod *v1.Pod,
    	expectedPVs []*v1.PersistentVolume,
    	expectedAPIPVs []*v1.PersistentVolume) {
    
    	// Check pv cache
    	pvCache := env.internalBinder.pvCache
    	for _, pv := range expectedPVs {
    		cachedPV, err := pvCache.GetPV(pv.Name)
    		if err != nil {
    			t.Errorf("GetPV %q returned error: %v", pv.Name, err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/policy/v1/generated.pb.go

    				return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPods", wireType)
    			}
    			m.ExpectedPods = 0
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return io.ErrUnexpectedEOF
    				}
    				b := dAtA[iNdEx]
    				iNdEx++
    				m.ExpectedPods |= int32(b&0x7F) << shift
    				if b < 0x80 {
    					break
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 45.1K bytes
    - Viewed (0)
  9. pkg/kube/multicluster/secretcontroller_test.go

    	}
    	return s
    }
    
    func TestKubeConfigOverride(t *testing.T) {
    	var (
    		expectedQPS   = float32(100)
    		expectedBurst = 200
    	)
    	fakeRestConfig := &rest.Config{}
    	client := kube.NewFakeClient()
    	stopCh := test.NewStop(t)
    	c := NewController(client, secretNamespace, "", mesh.NewFixedWatcher(nil), func(cfg *rest.Config) {
    		cfg.QPS = expectedQPS
    		cfg.Burst = expectedBurst
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/policy/v1beta1/generated.pb.go

    				return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPods", wireType)
    			}
    			m.ExpectedPods = 0
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return io.ErrUnexpectedEOF
    				}
    				b := dAtA[iNdEx]
    				iNdEx++
    				m.ExpectedPods |= int32(b&0x7F) << shift
    				if b < 0x80 {
    					break
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
Back to top