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

Restructure existing code to work with latest version of operator-sdk #560

Closed
wants to merge 8 commits into from

Conversation

adammw
Copy link
Contributor

@adammw adammw commented Aug 2, 2019

WORK IN PROGRESS

Issue #: #522

Description of changes: Restructure existing code to work with latest version of operator-sdk.

Following the recommendation of the operator-sdk migration guide, I created a new operator-sdk project and copied as much of the existing code as possible. Most changes are around the controller logic, as the operator-sdk API has changed from combined Handle() methods which take change events, to Reconcile() which take reconciliation requests of a single object instead.

Open Questions

  • Will this code be accepted for a new minor release?
  • Should the log code be left alone with the built-in seelog-based utilities or migrated to sigs.k8s.io/controller-runtime/pkg/log

TODO

  • Fix/update tests
  • Set correct log-levels to reduce log spam
  • Increase reconciliation period, 5 seconds seems awfully low

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@adammw adammw force-pushed the adammw/operator-sdk-rewrite branch 4 times, most recently from eb33cff to 5ff2b3d Compare August 5, 2019 19:54
@adammw adammw force-pushed the adammw/operator-sdk-rewrite branch from f0aca8b to f428859 Compare August 5, 2019 21:22
@mogren
Copy link
Contributor

mogren commented Aug 5, 2019

@adammw Hey, thanks for working on this. We would definitely consider this PR for a new minor release, after enough testing of course. Probably not for v1.6.0, since we are aiming to get that version out pretty soon.

That said, this is a pretty big change. I did take a quick stab at doing the smallest possible change required to update, but that was still a lot of work and didn't really follow the standard pattern used by the operator-framework.

@adammw
Copy link
Contributor Author

adammw commented Aug 28, 2019 via email

@adammw
Copy link
Contributor Author

adammw commented Aug 28, 2019 via email

@jaypipes
Copy link
Contributor

jaypipes commented Dec 6, 2019

@adammw sorry the delay in getting back to you on this! Are you still interested in working on this? There's been quite a few changes since this PR was originally submitted and you'd need to rebase (or likely restart afresh). The 2.x series CNI plugin won't be out until at the earliest next year and we'll still be supporting the 1.x plugin series for years to come, so I think this is still important tech debt to work on.

@mogren mogren mentioned this pull request Dec 11, 2019
@mogren
Copy link
Contributor

mogren commented Sep 8, 2020

The last update of this PR was over a year ago, closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants