Merge pull request #61065 from freehan/fix-gcloud-dev

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

fix validation for dev gcloud

```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2018-03-22 13:15:12 -07:00 committed by GitHub
commit e81965d456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1292,6 +1292,9 @@ minVersion = version.LooseVersion("1.3.0")
required = [ "alpha", "beta", "core" ]
data = json.loads(sys.argv[1])
rel = data.get("Google Cloud SDK")
if "CL @" in rel:
print("Using dev version of gcloud: %s" %rel)
exit(0)
if rel != "HEAD" and version.LooseVersion(rel) < minVersion:
print("gcloud version out of date ( < %s )" % minVersion)
exit(1)