Skip to content

fix(kube): Fixes missing API versions - #6897

Merged
thomastaylor312 merged 1 commit into
helm:dev-v2from
thomastaylor312:fix/missing_api_version
Nov 7, 2019
Merged

thomastaylor312 merged 1 commit into
helm:dev-v2from
thomastaylor312:fix/missing_api_version

Conversation

@thomastaylor312

Copy link
Copy Markdown
Contributor

In several of the job checks and other conversions we were using legacyscheme.
I don't know why it was working before, but I am guessing something changed
between k8s 1.15 and 1.16 with which types were registered. To fix I changed the references to use the default scheme in client-go

Closes #6894

In several of the job checks and other conversions we were using legacyscheme.
I don't know why it was working before, but I am guessing something changed
between k8s 1.15 and 1.16. To fix I changed the references to use the default
scheme in client-go

Signed-off-by: Taylor Thomas <[email protected]>
@thomastaylor312 thomastaylor312 added awaiting review bug Categorizes issue or PR as related to a bug. v2.x Issues and Pull Requests related to the major version v2 labels Nov 6, 2019
@thomastaylor312 thomastaylor312 added this to the 2.16.1 milestone Nov 6, 2019
@helm-bot helm-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 6, 2019
@thomastaylor312

Copy link
Copy Markdown
Contributor Author

I am going to see if anyone on the issue can double check this works as well.

I tested this with a handful of different charts to make sure it didn't break something else and I tested charts with batch/v1

@adamreese adamreese left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

scheme.Scheme.scheme.scheme

@thomastaylor312

Copy link
Copy Markdown
Contributor Author

I am going to leave the PR open until my morning so people across timezones can give the PR a whirl as well. Really trying to avoid any other regressions from hidden schema stuff

@bacongobbler bacongobbler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

scheme.Scheme().Scheme.SCHEME ? scheme.Scheme : scheme

@j-zimnowoda

Copy link
Copy Markdown

In several of the job checks and other conversions we were using legacyscheme.
I don't know why it was working before, but I am guessing something changed
between k8s 1.15 and 1.16 with which types were registered. To fix I changed the references to use the default scheme in client-go

Closes #6894
This issue also occurs on Kubernetes 1.13 on GKE but your fix solves it. Thanks.

$ k version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.11", GitCommit:"25074a190ef2a07d8b0ed38734f2cb373edfb868", GitTreeState:"clean", BuildDate:"2019-09-18T14:41:46Z", GoVersion:"go1.11.13", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.11-gke.9", GitCommit:"6c1e92d07f5717440f751666d4aad6943015d3cb", GitTreeState:"clean", BuildDate:"2019-10-11T23:14:17Z", GoVersion:"go1.11.13b4", Compiler:"gc", Platform:"linux/amd64"}

@bacongobbler bacongobbler modified the milestones: 2.16.1, 2.16.2 Nov 15, 2019
@bacongobbler bacongobbler modified the milestones: 2.16.2, 2.16.4 Feb 13, 2020
@mattfarina mattfarina added the picked Indicates that a PR has been cherry-picked into the next release candidate. label Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Categorizes issue or PR as related to a bug. needs-pick Indicates that a PR needs to be cherry-picked into the next release candidate. picked Indicates that a PR has been cherry-picked into the next release candidate. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. v2.x Issues and Pull Requests related to the major version v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants