Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for disruptionsAllowed (0.46 sec)

  1. pkg/registry/core/pod/storage/eviction_test.go

    			if err != nil {
    				t.Errorf("%#v", err)
    				return
    			}
    
    			if want, got := tc.expectedDisruptionsAllowed, existingPDB.Status.DisruptionsAllowed; got != want {
    				t.Errorf("expected DisruptionsAllowed to be %d, but got %d", want, got)
    			}
    
    			cond := apimeta.FindStatusCondition(existingPDB.Status.Conditions, policyv1.DisruptionAllowedCondition)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  2. pkg/apis/policy/v1/zz_generated.conversion.go

    	out.ObservedGeneration = in.ObservedGeneration
    	out.DisruptedPods = *(*map[string]metav1.Time)(unsafe.Pointer(&in.DisruptedPods))
    	out.DisruptionsAllowed = in.DisruptionsAllowed
    	out.CurrentHealthy = in.CurrentHealthy
    	out.DesiredHealthy = in.DesiredHealthy
    	out.ExpectedPods = in.ExpectedPods
    	out.Conditions = *(*[]metav1.Condition)(unsafe.Pointer(&in.Conditions))
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 22:32:27 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/policy/v1/types.go

    	DisruptedPods map[string]metav1.Time `json:"disruptedPods,omitempty" protobuf:"bytes,2,rep,name=disruptedPods"`
    
    	// Number of pod disruptions that are currently allowed.
    	DisruptionsAllowed int32 `json:"disruptionsAllowed" protobuf:"varint,3,opt,name=disruptionsAllowed"`
    
    	// current number of healthy pods
    	CurrentHealthy int32 `json:"currentHealthy" protobuf:"varint,4,opt,name=currentHealthy"`
    
    	// minimum desired number of healthy pods
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/policy/v1beta1/types.go

    	DisruptedPods map[string]metav1.Time `json:"disruptedPods,omitempty" protobuf:"bytes,2,rep,name=disruptedPods"`
    
    	// Number of pod disruptions that are currently allowed.
    	DisruptionsAllowed int32 `json:"disruptionsAllowed" protobuf:"varint,3,opt,name=disruptionsAllowed"`
    
    	// current number of healthy pods
    	CurrentHealthy int32 `json:"currentHealthy" protobuf:"varint,4,opt,name=currentHealthy"`
    
    	// minimum desired number of healthy pods
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  5. pkg/apis/policy/v1beta1/zz_generated.conversion.go

    	out.ObservedGeneration = in.ObservedGeneration
    	out.DisruptedPods = *(*map[string]v1.Time)(unsafe.Pointer(&in.DisruptedPods))
    	out.DisruptionsAllowed = in.DisruptionsAllowed
    	out.CurrentHealthy = in.CurrentHealthy
    	out.DesiredHealthy = in.DesiredHealthy
    	out.ExpectedPods = in.ExpectedPods
    	out.Conditions = *(*[]v1.Condition)(unsafe.Pointer(&in.Conditions))
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  6. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    	}
    
    	newPdb := &policy.PodDisruptionBudget{
    		ObjectMeta: metav1.ObjectMeta{Name: pdb.Name, Namespace: pdb.Namespace},
    		Spec:       pdb.Spec,
    		Status: policy.PodDisruptionBudgetStatus{
    			DisruptionsAllowed: 1,
    			CurrentHealthy:     3,
    			DesiredHealthy:     3,
    			ExpectedPods:       3,
    		},
    	}
    
    	// Nothing in Spec changes: OK
    	Strategy.PrepareForUpdate(ctx, newPdb, pdb)
    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/registry/core/pod/storage/eviction.go

    					updateDeletionOptions = true
    					return nil
    				}
    			}
    			// default nil and IfHealthyBudget policy
    			if pdb.Status.CurrentHealthy >= pdb.Status.DesiredHealthy && pdb.Status.DesiredHealthy > 0 {
    				// Delete the unhealthy pod, it doesn't count towards currentHealthy and desiredHealthy and we should not decrement disruptionsAllowed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 08 11:58:48 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  8. pkg/controller/disruption/disruption.go

    	// common one that's easy to detect.
    	disruptionsAllowed := currentHealthy - desiredHealthy
    	if expectedCount <= 0 || disruptionsAllowed <= 0 {
    		disruptionsAllowed = 0
    	}
    
    	if pdb.Status.CurrentHealthy == currentHealthy &&
    		pdb.Status.DesiredHealthy == desiredHealthy &&
    		pdb.Status.ExpectedPods == expectedCount &&
    		pdb.Status.DisruptionsAllowed == disruptionsAllowed &&
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/policy/v1/generated.pb.go

    				return fmt.Errorf("proto: wrong wireType = %d for field DisruptionsAllowed", wireType)
    			}
    			m.DisruptionsAllowed = 0
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return io.ErrUnexpectedEOF
    				}
    				b := dAtA[iNdEx]
    				iNdEx++
    				m.DisruptionsAllowed |= 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)
  10. staging/src/k8s.io/api/policy/v1beta1/generated.pb.go

    				return fmt.Errorf("proto: wrong wireType = %d for field DisruptionsAllowed", wireType)
    			}
    			m.DisruptionsAllowed = 0
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return io.ErrUnexpectedEOF
    				}
    				b := dAtA[iNdEx]
    				iNdEx++
    				m.DisruptionsAllowed |= 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