-
Notifications
You must be signed in to change notification settings - Fork 748
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
Conversation
eb33cff
to
5ff2b3d
Compare
f0aca8b
to
f428859
Compare
@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. |
Yeah, I think apart from the logging changes, this is essentially the
smallest change as operator sdk API change necessitates splitting up the
existing eniconfig controller into two.
That being said, the actual value of using controllers in the first place
seems to be reasonably low since the ipam module polls the controllers for
information periodically, meaning it doesn't directly get notified of
changes and they're only applied for new ipam requests.
…On Mon, Aug 5, 2019, 2:53 PM Claes Mogren ***@***.***> wrote:
@adammw <https://github.com/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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#560?email_source=notifications&email_token=AABFNAYFC56RUMEWFZVAVCTQDCOMLA5CNFSM4IJAQVA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3TGFXI#issuecomment-518415069>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABFNA2ABSENSKN5EW627SLQDCOMLANCNFSM4IJAQVAQ>
.
|
Another question is how far away the rearchitecture discussed on the
roadmap is away, whether this makes sense to merge in a minor version, or
wait and skip to the new codebase when it's ready.
On Tue, Aug 27, 2019, 5:12 PM Adam Malcontenti-Wilson <adman.com@gmail.com>
wrote:
… Yeah, I think apart from the logging changes, this is essentially the
smallest change as operator sdk API change necessitates splitting up the
existing eniconfig controller into two.
That being said, the actual value of using controllers in the first place
seems to be reasonably low since the ipam module polls the controllers for
information periodically, meaning it doesn't directly get notified of
changes and they're only applied for new ipam requests.
On Mon, Aug 5, 2019, 2:53 PM Claes Mogren ***@***.***>
wrote:
> @adammw <https://github.com/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.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#560?email_source=notifications&email_token=AABFNAYFC56RUMEWFZVAVCTQDCOMLA5CNFSM4IJAQVA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3TGFXI#issuecomment-518415069>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AABFNA2ABSENSKN5EW627SLQDCOMLANCNFSM4IJAQVAQ>
> .
>
|
@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. |
The last update of this PR was over a year ago, closing it. |
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
sigs.k8s.io/controller-runtime/pkg/log
TODO
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.