Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for DeploymentComplete (0.26 sec)

  1. pkg/controller/deployment/progress_test.go

    			conditionType:   apps.DeploymentProgressing,
    			conditionStatus: v1.ConditionTrue,
    			conditionReason: util.ReplicaSetUpdatedReason,
    		},
    		{
    			name:            "DeploymentComplete: dont update lastTransitionTime if deployment already has Progressing=True",
    			d:               currentDeployment(&pds, 3, 3, 3, 3, []apps.DeploymentCondition{replicaSetUpdated}),
    			allRSs:          []*apps.ReplicaSet{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. pkg/controller/deployment/progress.go

    	// Check for progress only if there is a progress deadline set and the latest rollout
    	// hasn't completed yet.
    	if util.HasProgressDeadline(d) && !isCompleteDeployment {
    		switch {
    		case util.DeploymentComplete(d, &newStatus):
    			// Update the deployment conditions with a message for the new replica set that
    			// was successfully deployed. If the condition already exists, we ignore this update.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 11:00:44 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  3. pkg/controller/deployment/recreate.go

    			return err
    		}
    		allRSs = append(oldRSs, newRS)
    	}
    
    	// scale up new replica set.
    	if _, err := dc.scaleUpNewReplicaSetForRecreate(ctx, newRS, d); err != nil {
    		return err
    	}
    
    	if util.DeploymentComplete(d, &d.Status) {
    		if err := dc.cleanupDeployment(ctx, oldRSs, d); err != nil {
    			return err
    		}
    	}
    
    	// Sync deployment status.
    	return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 13 20:32:13 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  4. pkg/controller/deployment/rolling.go

    	if err != nil {
    		return err
    	}
    	if scaledDown {
    		// Update DeploymentStatus
    		return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    	}
    
    	if deploymentutil.DeploymentComplete(d, &d.Status) {
    		if err := dc.cleanupDeployment(ctx, oldRSs, d); err != nil {
    			return err
    		}
    	}
    
    	// Sync deployment status
    	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. pkg/test/framework/components/echo/kube/deployment.go

    			} else {
    				dep, err := appsv1Client.Deployments(d.cfg.Namespace.Name()).Get(context.TODO(), deploymentName, metav1.GetOptions{})
    				if err != nil {
    					return err
    				}
    				if dep.Spec.Replicas == nil || !deploymentComplete(dep) {
    					return fmt.Errorf("rollout is not yet done (updated replicas: %v)", dep.Status.UpdatedReplicas)
    				}
    			}
    			return nil
    		}, retry.Timeout(60*time.Second), retry.Delay(2*time.Second)); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  6. pkg/controller/deployment/util/deployment_util.go

    	return deployment.Spec.Strategy.Type == apps.RollingUpdateDeploymentStrategyType
    }
    
    // DeploymentComplete considers a deployment to be complete once all of its desired replicas
    // are updated and available, and no old pods are running.
    func DeploymentComplete(deployment *apps.Deployment, newStatus *apps.DeploymentStatus) bool {
    	return newStatus.UpdatedReplicas == *(deployment.Spec.Replicas) &&
    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. pkg/controller/deployment/util/deployment_util_test.go

    			d:        deployment(1, 1, 1, 0, 1, 1),
    			expected: false,
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			if got, exp := DeploymentComplete(test.d, &test.d.Status), test.expected; got != exp {
    				t.Errorf("expected complete: %t, got: %t", exp, got)
    			}
    		})
    	}
    }
    
    func TestDeploymentProgressing(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 37.1K bytes
    - Viewed (0)
Back to top