Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for disruptionsAllowed (0.24 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. common-protos/k8s.io/api/policy/v1beta1/generated.proto

    // PodDisruptionBudget. Status may trail the actual state of a system.
    message PodDisruptionBudgetStatus {
      // Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
      // status information is valid only if observedGeneration equals to PDB's object generation.
      // +optional
      optional int64 observedGeneration = 1;
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top