make replicas a pointer in v1beta3 api

This commit is contained in:
Mike Danese
2015-06-22 18:33:15 -07:00
parent 2906f85227
commit f79736d767
6 changed files with 63 additions and 54 deletions

View File

@@ -953,7 +953,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.