Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetFromReplicaSetTemplate (0.24 sec)

  1. pkg/controller/deployment/rollback.go

    	if !deploymentutil.EqualIgnoreHash(&d.Spec.Template, &rs.Spec.Template) {
    		logger.V(4).Info("Rolling back deployment to old template spec", "deployment", klog.KObj(d), "templateSpec", rs.Spec.Template.Spec)
    		deploymentutil.SetFromReplicaSetTemplate(d, rs.Spec.Template)
    		// set RS (the old RS we'll rolling back to) annotations back to the deployment;
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. pkg/controller/deployment/util/deployment_util.go

    		if *(rs.Spec.Replicas) != 0 {
    			requiredRSs = append(requiredRSs, rs)
    		}
    	}
    	return requiredRSs, allRSs
    }
    
    // SetFromReplicaSetTemplate sets the desired PodTemplateSpec from a replica set template to the given deployment.
    func SetFromReplicaSetTemplate(deployment *apps.Deployment, template v1.PodTemplateSpec) *apps.Deployment {
    	deployment.Spec.Template.ObjectMeta = template.ObjectMeta
    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