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

deps: upgrade to k8s 1.21.1 #4620

Merged
merged 2 commits into from
Jun 9, 2021
Merged

deps: upgrade to k8s 1.21.1 #4620

merged 2 commits into from
Jun 9, 2021

Conversation

milas
Copy link
Contributor

@milas milas commented Jun 8, 2021

Required Changes:

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)

@milas milas requested a review from nicks June 8, 2021 17:31
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
Copy link
Contributor Author

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())
Copy link
Contributor Author

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)

@milas milas merged commit 84fd825 into master Jun 9, 2021
@milas milas deleted the k8s-1.21 branch June 9, 2021 17:57
landism pushed a commit that referenced this pull request Jun 9, 2021
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)
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.

None yet

2 participants