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

K8SSAND-1368 ⁃ Refactor webhook logic #497

Open
Miles-Garnsey opened this issue Mar 31, 2022 · 3 comments
Open

K8SSAND-1368 ⁃ Refactor webhook logic #497

Miles-Garnsey opened this issue Mar 31, 2022 · 3 comments
Assignees
Labels
assess Issues in the state 'assess' zh:Assess/Investigate Issues in the ZenHub pipeline 'Assess/Investigate'

Comments

@Miles-Garnsey
Copy link
Member

Miles-Garnsey commented Mar 31, 2022

What is missing?

We need to look at the webhook logic with a view to refactoring it out of APIs.

Why do we need it?

As part of delivering #235 via #482 I've been struggling to:

  1. Share validation logic between reconcilers and webhooks via pkg packages.
  2. Access test utilities in pkg/test

This is because most of pkg imports parts of apis, and - because the webhooks are also in apis

  • trying to import pkg items back into apis creates a cycle.

Complication

It seems that (somewhat unfortunately) the webhooks must be in APIs due to constraints around the way the types are imported into the scheme.

I'm not 100% sure how to solve this, but this ticket to track research on a solution.

┆Issue is synchronized with this Jira Story by Unito

@Miles-Garnsey Miles-Garnsey self-assigned this Mar 31, 2022
@sync-by-unito sync-by-unito bot changed the title Refactor webhook logic K8SSAND-1368 ⁃ Refactor webhook logic Mar 31, 2022
@adejanovski adejanovski added the zh:Assess/Investigate Issues in the ZenHub pipeline 'Assess/Investigate' label Apr 6, 2022
@jsanda
Copy link
Contributor

jsanda commented Apr 19, 2022

Please add your planning poker estimate with ZenHub @burmanm

@jsanda
Copy link
Contributor

jsanda commented Apr 19, 2022

Please add your planning poker estimate with ZenHub @Miles-Garnsey

@Miles-Garnsey
Copy link
Member Author

I'd make this a research ticket time boxed at 2 days initially. Back of the envelope from my prelim research suggets:

  • 4 days to determine how to treat all types as external types. This is high risk as the documentation is incomplete according to this open issue.
  • 4 days to refactor.

Above estimates are rough and subject to change post research step.

@adejanovski adejanovski added zh:Assess/Investigate Issues in the ZenHub pipeline 'Assess/Investigate' and removed zh:Assess/Investigate Issues in the ZenHub pipeline 'Assess/Investigate' labels Aug 30, 2022
@adejanovski adejanovski added the assess Issues in the state 'assess' label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assess Issues in the state 'assess' zh:Assess/Investigate Issues in the ZenHub pipeline 'Assess/Investigate'
Projects
No open projects
Status: Assess/Investigate
Development

No branches or pull requests

3 participants