Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for DeploymentStatus (0.23 sec)

  1. operator/pkg/verifier/verify_test.go

    )
    
    var (
    	availableDeployment = appsv1.Deployment{
    		Status: appsv1.DeploymentStatus{
    			Conditions: []appsv1.DeploymentCondition{
    				{
    					Type: appsv1.DeploymentAvailable,
    				},
    			},
    		},
    	}
    
    	scaleUpRollingDeployment = appsv1.Deployment{
    		Spec: appsv1.DeploymentSpec{
    			Replicas: &[]int32{3}[0],
    		},
    		Status: appsv1.DeploymentStatus{
    			Conditions: []appsv1.DeploymentCondition{
    				{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 28 16:26:13 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. pkg/controller/deployment/util/deployment_util_test.go

    	tests := []struct {
    		name string
    
    		status *apps.DeploymentStatus
    		cond   apps.DeploymentCondition
    
    		expectedStatus *apps.DeploymentStatus
    	}{
    		{
    			name: "set for the first time",
    
    			status: &apps.DeploymentStatus{},
    			cond:   condAvailable(),
    
    			expectedStatus: &apps.DeploymentStatus{Conditions: []apps.DeploymentCondition{condAvailable()}},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 37.1K bytes
    - Viewed (0)
  3. pkg/controller/deployment/progress_test.go

    	"k8s.io/client-go/util/workqueue"
    	"k8s.io/klog/v2/ktesting"
    	"k8s.io/kubernetes/pkg/controller/deployment/util"
    )
    
    func newDeploymentStatus(replicas, updatedReplicas, availableReplicas int32) apps.DeploymentStatus {
    	return apps.DeploymentStatus{
    		Replicas:          replicas,
    		UpdatedReplicas:   updatedReplicas,
    		AvailableReplicas: availableReplicas,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. pkg/controller/deployment/rolling.go

    	if err != nil {
    		return err
    	}
    	if scaledUp {
    		// Update DeploymentStatus
    		return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    	}
    
    	// Scale down, if we can.
    	scaledDown, err := dc.reconcileOldReplicaSets(ctx, allRSs, controller.FilterActiveReplicaSets(oldRSs), newRS, d)
    	if err != nil {
    		return err
    	}
    	if scaledDown {
    		// Update DeploymentStatus
    		return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  5. operator/pkg/verifier/k8s_util.go

    				daemonSet.Namespace, daemonSet.Name, daemonSet.Status.NumberReady, daemonSet.Status.DesiredNumberScheduled)
    		}
    	}
    	return nil
    }
    
    func getDeploymentCondition(status appsv1.DeploymentStatus, condType appsv1.DeploymentConditionType) *appsv1.DeploymentCondition {
    	for i := range status.Conditions {
    		c := status.Conditions[i]
    		if c.Type == condType {
    			return &c
    		}
    	}
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 28 16:26:13 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. pkg/controller/deployment/util/deployment_util.go

    		Reason:             reason,
    		Message:            message,
    	}
    }
    
    // GetDeploymentCondition returns the condition with the provided type.
    func GetDeploymentCondition(status apps.DeploymentStatus, condType apps.DeploymentConditionType) *apps.DeploymentCondition {
    	for i := range status.Conditions {
    		c := status.Conditions[i]
    		if c.Type == condType {
    			return &c
    		}
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/apps/v1beta1/generated.pb.go

    func (m *DeploymentStatus) Reset()      { *m = DeploymentStatus{} }
    func (*DeploymentStatus) ProtoMessage() {}
    func (*DeploymentStatus) Descriptor() ([]byte, []int) {
    	return fileDescriptor_2747f709ac7c95e7, []int{7}
    }
    func (m *DeploymentStatus) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *DeploymentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  8. pkg/apis/apps/validation/validation_test.go

    		name string
    
    		from, to apps.DeploymentStatus
    
    		expectedErr bool
    	}{{
    		name: "increase: valid update",
    		from: apps.DeploymentStatus{
    			CollisionCount: nil,
    		},
    		to: apps.DeploymentStatus{
    			CollisionCount: &collisionCount,
    		},
    		expectedErr: false,
    	}, {
    		name: "stable: valid update",
    		from: apps.DeploymentStatus{
    			CollisionCount: &collisionCount,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/apps/v1beta1/generated.proto

      // not be estimated during the time a deployment is paused. Defaults to 600s.
      // +optional
      optional int32 progressDeadlineSeconds = 9;
    }
    
    // DeploymentStatus is the most recently observed status of the Deployment.
    message DeploymentStatus {
      // observedGeneration is the generation observed by the deployment controller.
      // +optional
      optional int64 observedGeneration = 1;
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/apps/v1/generated.pb.go

    func (m *DeploymentStatus) Reset()      { *m = DeploymentStatus{} }
    func (*DeploymentStatus) ProtoMessage() {}
    func (*DeploymentStatus) Descriptor() ([]byte, []int) {
    	return fileDescriptor_5b781835628d5338, []int{12}
    }
    func (m *DeploymentStatus) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *DeploymentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 217.1K bytes
    - Viewed (0)
Back to top