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

controller-runtime versioning #601

Open
joelanford opened this issue Sep 12, 2019 · 6 comments
Open

controller-runtime versioning #601

joelanford opened this issue Sep 12, 2019 · 6 comments
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Milestone

Comments

@joelanford
Copy link
Member

At the community meeting on 9/11/2019, there was a discussion about how to version controller-runtime to handle scenarios around dependency changes:

  • How to handle breaking changes in controller-runtime APIs introduced by controller-runtime contributors or by breaking changes in dependencies (e.g. k8s.io/client-go)
  • How to handle no breaking changes in controller-runtime APIs but possible user-facing breaking changes due to upgrades of controller-runtime's transitive dependencies
  • Can we backport fixes to versions of controller-runtime that support older versions of Kubernetes?

My understanding of semver is that we need to only consider the first scenario when choosing a version number after dependency changes.

My two cents - if the controller-runtime API changes are backwards-compatible, I'm not sure it makes sense to try to ALSO consider compatibility of all transitive dependencies -- that's what the version numbers of the transitive dependencies are for.

If we want to be helpful, we could add a statement to the release notes when we update dependencies to let users know that they might require code changes if they're using those dependencies directly.

With these scenarios in mind, I'd propose a slight change to the versioning scheme while we're pre-1.0:

  • Bump the minor version when we add features, make breaking changes, and/or update Kubernetes versions to a new minor version (e.g. go from 1.14 to 1.15)
  • Bump the patch version only for patches, backports, etc.

post-1.0, I would propose:

  • Bump the major version when breaking changes are introduced in controller-runtime APIs
  • Bump the minor version when we add backwards-compatible changes or make backwards compatible dependency updates, where we consider only controller-runtime API compatibility.
  • Bump the patch version only for patches, backports, etc.

Thoughts?

/cc @DirectXMan12 @shawn-hurley @justinsb @droot

@shawn-hurley
Copy link

How to handle breaking changes in controller-runtime APIs introduced by controller-runtime contributors or by breaking changes in dependencies (e.g. k8s.io/client-go)

There was the potential talk of a generic library that does not depend on k8s.io/api or k8s.io/apimachinery in the apimachinery sig meeting. I would like to explore if we could either help with this work or do this work? I think this would be very helpful for everyone. @DirectXMan12 Have you seen anything more about this?

This would allow us to not have to follow kubernetes release IIUC and allow this library and others to have their own release's. We may still want a compatibility matrix if something drastically changes in the underlying library but I think this might be the place to spend our cycles?

What do folks think?

@DirectXMan12
Copy link
Contributor

I haven't seen anything more yet, but I would like to help out with that effort. I think @deads2k was the one that brought it up. @sttts and I have talked about it in the past before

@sttts
Copy link

sttts commented Sep 17, 2019

@deads2k is preparing a KEP for this effort.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 16, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 15, 2020
@DirectXMan12
Copy link
Contributor

/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Jan 22, 2020
@vincepri vincepri added this to the Next milestone Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

No branches or pull requests

7 participants