Merge pull request #417 from MaciekPytel/gke_alpha_client_fix

Fix a bug with parsing int64 in GKE alpha client
This commit is contained in:
Aleksandra Malinowska 2017-10-24 19:59:56 +02:00 committed by GitHub
commit 74d20a6cc7
2 changed files with 4 additions and 4 deletions

View File

@ -1221,12 +1221,12 @@
"description": "Resource name \"cpu\", \"memory\" or gpu-specific string."
},
"minimum": {
"type": "integer",
"type": "string",
"format": "int64",
"description": "Minimum amount of the resource in the cluster."
},
"maximum": {
"type": "integer",
"type": "string",
"format": "int64",
"description": "Maximum amount of the resource in the cluster."
}

View File

@ -2194,10 +2194,10 @@ func (s *PodSecurityPolicyConfig) MarshalJSON() ([]byte, error) {
// the cluster.
type ResourceLimit struct {
// Maximum: Maximum amount of the resource in the cluster.
Maximum int64 `json:"maximum,omitempty"`
Maximum int64 `json:"maximum,omitempty,string"`
// Minimum: Minimum amount of the resource in the cluster.
Minimum int64 `json:"minimum,omitempty"`
Minimum int64 `json:"minimum,omitempty,string"`
// Name: Resource name "cpu", "memory" or gpu-specific string.
Name string `json:"name,omitempty"`