Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for DeploymentStatus (0.72 sec)

  1. 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)
  2. staging/src/k8s.io/api/apps/v1beta1/zz_generated.deepcopy.go

    		*out = new(int32)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus.
    func (in *DeploymentStatus) DeepCopy() *DeploymentStatus {
    	if in == nil {
    		return nil
    	}
    	out := new(DeploymentStatus)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 15:48:00 UTC 2022
    - 18.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/apps/v1/zz_generated.deepcopy.go

    		*out = new(int32)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus.
    func (in *DeploymentStatus) DeepCopy() *DeploymentStatus {
    	if in == nil {
    		return nil
    	}
    	out := new(DeploymentStatus)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 15:48:00 UTC 2022
    - 23.8K bytes
    - Viewed (0)
  4. 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)
  5. staging/src/k8s.io/api/apps/v1beta2/zz_generated.deepcopy.go

    		*out = new(int32)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus.
    func (in *DeploymentStatus) DeepCopy() *DeploymentStatus {
    	if in == nil {
    		return nil
    	}
    	out := new(DeploymentStatus)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 15:48:00 UTC 2022
    - 25.5K bytes
    - Viewed (0)
  6. pkg/apis/apps/zz_generated.deepcopy.go

    		*out = new(int32)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus.
    func (in *DeploymentStatus) DeepCopy() *DeploymentStatus {
    	if in == nil {
    		return nil
    	}
    	out := new(DeploymentStatus)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 15:48:09 UTC 2022
    - 24.7K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/api/extensions/v1beta1/zz_generated.deepcopy.go

    		*out = new(int32)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus.
    func (in *DeploymentStatus) DeepCopy() *DeploymentStatus {
    	if in == nil {
    		return nil
    	}
    	out := new(DeploymentStatus)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 18:19:25 UTC 2023
    - 33.2K bytes
    - Viewed (0)
  9. 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)
  10. pkg/registry/apps/deployment/storage/storage_test.go

    						},
    					},
    					RestartPolicy: api.RestartPolicyAlways,
    					DNSPolicy:     api.DNSClusterFirst,
    				},
    			},
    			Replicas: 7,
    		},
    		Status: apps.DeploymentStatus{
    			Replicas: 5,
    		},
    	}
    }
    
    var validDeployment = *validNewDeployment()
    
    func TestCreate(t *testing.T) {
    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:17:45 UTC 2023
    - 19.7K bytes
    - Viewed (0)
Back to top