Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support GKE's weird 10+ versions #506

Merged
merged 1 commit into from
Jul 24, 2018
Merged

Conversation

liztio
Copy link
Contributor

@liztio liztio commented Jul 24, 2018

Signed-off-by: liz liz@heptio.com

What this PR does / why we need it:
GKE has a weird version: version.Info{Major:"1", Minor:"10+", GitVersion:"v1.10.5-gke.3", GitCommit:"6265b9797fc8680c8395abeab12c1e3bad14069a", GitTreeState:"clean", BuildDate:"2018-07-19T23:02:51Z", GoVersion:"go1.9.3b4", Compiler:"gc", Platform:"linux/amd64"}

The 10+ breaks running tests. To avoid this, we use the segments from the GitVersion.

Which issue(s) this PR fixes

Special notes for your reviewer:

Release note:

@liztio liztio requested a review from timothysc July 24, 2018 18:26
Copy link
Contributor

@timothysc timothysc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor request for comment to follow up then lgtm from me.

return "", err
}

segments := parsedVersion.Segments()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liztio could you put a comment here to follow up on why GKE diverged on minor version. It's super odd.

Signed-off-by: liz <liz@heptio.com>
Copy link
Contributor

@timothysc timothysc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@timothysc timothysc merged commit 2729e12 into vmware-tanzu:master Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants