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

Upgrade Kubernetes client libraries to 0.18.5 #1138

Merged

Conversation

zubron
Copy link
Contributor

@zubron zubron commented Jul 6, 2020

What this PR does / why we need it:
This changes upgrades the version the Kubernetes libraries we are using
to the latest version, 0.18.5. With this, a number of the APIs had
changed to take a context.Context parameter. As most of the API uses
do not have a surrounding context, these updated calls take a TODO
context as recommended in the Golang context documentation:
https://golang.org/pkg/context/#TODO

Signed-off-by: Bridget McErlean bmcerlean@vmware.com

@@ -42,7 +42,7 @@ const (
waitOutputFlag = "wait-output"
customRegistryFlag = "custom-registry"
kubeconfig = "kubeconfig"
context = "context"
kubecontext = "context"
Copy link
Contributor Author

@zubron zubron Jul 6, 2020

Choose a reason for hiding this comment

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

Modified to avoid clash with imported context package in run.go.

@zubron zubron force-pushed the upgrade-k8s-client-libraries-to-0.18.5 branch from 9d4c8f5 to 8ef2fd9 Compare July 6, 2020 20:00
This changes upgrades the version the Kubernetes libraries we are using
to the latest version, 0.18.5. With this, a number of the APIs had
changed to take a `context.Context` parameter. As most of the API uses
do not have a surrounding context, these updated calls take a `TODO`
context as recommended in the Golang context documentation:
https://golang.org/pkg/context/#TODO

Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
@zubron zubron force-pushed the upgrade-k8s-client-libraries-to-0.18.5 branch from 8ef2fd9 to 3117f9b Compare August 24, 2020 18:04
@zubron zubron requested a review from vladimirvivien August 24, 2020 18:04
Copy link
Contributor

@vladimirvivien vladimirvivien left a comment

Choose a reason for hiding this comment

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

LGTM

@zubron zubron merged commit 0b9a839 into vmware-tanzu:master Aug 24, 2020
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