-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathv1beta2_deployment_spec.go
38 lines (28 loc) · 1.99 KB
/
v1beta2_deployment_spec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// DeploymentSpec is the specification of the desired behavior of the Deployment.
type V1beta2DeploymentSpec struct {
// Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
MinReadySeconds int32 `json:"minReadySeconds,omitempty"`
// Indicates that the deployment is paused.
Paused bool `json:"paused,omitempty"`
// The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.
ProgressDeadlineSeconds int32 `json:"progressDeadlineSeconds,omitempty"`
// Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
Replicas int32 `json:"replicas,omitempty"`
// The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.
RevisionHistoryLimit int32 `json:"revisionHistoryLimit,omitempty"`
// Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.
Selector *V1LabelSelector `json:"selector"`
// The deployment strategy to use to replace existing pods with new ones.
Strategy *V1beta2DeploymentStrategy `json:"strategy,omitempty"`
// Template describes the pods that will be created.
Template *V1PodTemplateSpec `json:"template"`
}