Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for updatedReplicas (0.18 sec)

  1. pkg/controller/deployment/progress_test.go

    	"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,
    	}
    }
    
    // assumes the retuned deployment is always observed - not needed to be tested here.
    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. operator/pkg/helmreconciler/wait.go

    		if sts.Spec.UpdateStrategy.Type == appsv1.OnDeleteStatefulSetStrategyType &&
    			sts.Status.UpdatedReplicas != sts.Status.Replicas {
    			scope.Infof("StatefulSet is not ready: %s/%s. %d out of %d expected pods have been scheduled",
    				sts.Namespace, sts.Name, sts.Status.UpdatedReplicas, sts.Status.Replicas)
    			notReady = append(notReady, "StatefulSet/"+sts.Namespace+"/"+sts.Name)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 08 03:13:12 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/apps/v1beta1/types.go

    	CurrentReplicas int32 `json:"currentReplicas,omitempty" protobuf:"varint,4,opt,name=currentReplicas"`
    
    	// updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version
    	// indicated by updateRevision.
    	UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,5,opt,name=updatedReplicas"`
    
    	// currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:24 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  4. pkg/apis/apps/validation/validation.go

    		allErrs = append(allErrs, field.Invalid(fieldPath.Child("currentReplicas"), status.CurrentReplicas, msg))
    	}
    	if status.UpdatedReplicas > status.Replicas {
    		allErrs = append(allErrs, field.Invalid(fieldPath.Child("updatedReplicas"), status.UpdatedReplicas, msg))
    	}
    	if status.AvailableReplicas > status.Replicas {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 06 22:11:20 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  5. common-protos/k8s.io/api/apps/v1beta1/generated.proto

      // +optional
      optional int32 replicas = 2;
    
      // updatedReplicas is the total number of non-terminated pods targeted by this deployment that have the desired template spec.
      // +optional
      optional int32 updatedReplicas = 3;
    
      // readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition.
      // +optional
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24K bytes
    - Viewed (0)
  6. pkg/controller/statefulset/stateful_set_control.go

    			"replicas", currentStatus.Replicas,
    			"readyReplicas", currentStatus.ReadyReplicas,
    			"currentReplicas", currentStatus.CurrentReplicas,
    			"updatedReplicas", currentStatus.UpdatedReplicas)
    	}
    
    	switch {
    	case err != nil && statusErr != nil:
    		logger.Error(statusErr, "Could not update status", "statefulSet", klog.KObj(set))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:03:46 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/apps/v1beta1/generated.proto

      // +optional
      optional int32 replicas = 2;
    
      // updatedReplicas is the total number of non-terminated pods targeted by this deployment that have the desired template spec.
      // +optional
      optional int32 updatedReplicas = 3;
    
      // readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition.
      // +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  8. 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
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  9. pkg/controller/statefulset/stateful_set_utils.go

    // is set to the empty string. status's currentReplicas is set to updateReplicas and its updateReplicas
    // are set to 0.
    func completeRollingUpdate(set *apps.StatefulSet, status *apps.StatefulSetStatus) {
    	if set.Spec.UpdateStrategy.Type == apps.RollingUpdateStatefulSetStrategyType &&
    		status.UpdatedReplicas == *set.Spec.Replicas &&
    		status.ReadyReplicas == *set.Spec.Replicas &&
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  10. pkg/controller/deployment/util/deployment_util.go

    	oldStatus := deployment.Status
    
    	// Old replicas that need to be scaled down
    	oldStatusOldReplicas := oldStatus.Replicas - oldStatus.UpdatedReplicas
    	newStatusOldReplicas := newStatus.Replicas - newStatus.UpdatedReplicas
    
    	return (newStatus.UpdatedReplicas > oldStatus.UpdatedReplicas) ||
    		(newStatusOldReplicas < oldStatusOldReplicas) ||
    		newStatus.ReadyReplicas > deployment.Status.ReadyReplicas ||
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 39.3K bytes
    - Viewed (0)
Back to top