-
Notifications
You must be signed in to change notification settings - Fork 309
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
deps: upgrade to k8s 1.21.1 #4620
Conversation
Breaking Changes: * Refactor client init to not use `ClientBuilder` (see kubernetes-sigs/controller-runtime#1409) * Add stub `RemoveStreams` method on `fakePortForward` Mechanical Changes: * Upgrade K8s dependencies to v0.21.1 (aka 1.21.1) * Upgrade controller-runtime to 0.9.0 (required for K8s v0.21.1 deps) * Upgrade tilt-apiserver to v0.4.0 (requires for K8s v0.21.1 deps) * Remove `moby/term` replace (bug was fixed upstream and older version no longer compiles)
@@ -128,9 +127,5 @@ replace ( | |||
go.opencensus.io => github.com/tilt-dev/opencensus-go v0.22.5-0.20200904175236-275b1754f353 | |||
golang.org/x/crypto => golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413 | |||
|
|||
// Workaround for: | |||
// https://github.com/moby/term/issues/15 | |||
golang.org/x/sys => golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the updated dependencies was using a new function that wasn't available. The Darwin compilation issue in moby/term
was fixed and the new version compiles on macOS again. I didn't see any odddities in terminal rendering using the TUI either.
Logger: logr, | ||
GracefulShutdownTimeout: &timeout, | ||
}) | ||
if err != nil { | ||
return fmt.Errorf("unable to create controller manager: %v", err) | ||
} | ||
|
||
// provide the deferred client with the real client now that it has been initialized | ||
m.deferredClient.initialize(mgr.GetClient()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ClientBuilder
is gone and ctrl.NewManager
can handle uncached objects, so this just explicitly initializes the deferred client after setting that up. Uncached objects are injected via ProvideUncachedObjects
(currently nil for release, except in tests where we explicitly call this constructor and pass Filewatch)
Required Changes: * Refactor client init to not use `ClientBuilder` (see kubernetes-sigs/controller-runtime#1409) * Add stub `RemoveStreams` method on `fakePortForward` * Re-generate OpenAPI spec for K8s meta types shared by Tilt apiserver Mechanical Changes: * Upgrade K8s dependencies to v0.21.1 (aka 1.21.1) * Upgrade controller-runtime to 0.9.0 (required for K8s v0.21.1 deps) * Upgrade tilt-apiserver to v0.4.0 (requires for K8s v0.21.1 deps) * Remove `moby/term` replace (bug was fixed upstream and older version no longer compiles)
Required Changes:
ClientBuilder
(see ⚠️ Allow setting NewClientFunc w/o implementing an interface kubernetes-sigs/controller-runtime#1409)
RemoveStreams
method onfakePortForward
Mechanical Changes:
moby/term
replace (bug was fixed upstream and olderversion no longer compiles)