Merge pull request #10234 from mikedanese/rolling-update-weird

Detect if replicas have been defaulted in rolling-update and use old replica count
This commit is contained in:
Robert Bailey
2015-06-26 12:54:35 -07:00
12 changed files with 135 additions and 83 deletions

View File

@@ -971,7 +971,7 @@ type PodTemplateList struct {
// ReplicationControllerSpec is the specification of a replication controller.
type ReplicationControllerSpec struct {
// Replicas is the number of desired replicas.
// Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified.
Replicas *int `json:"replicas,omitempty" description:"number of replicas desired; defaults to 1"`
// Selector is a label query over pods that should match the Replicas count.