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

Documentation request: e2e test with webhook #3454

Open
vsoch opened this issue Jun 13, 2023 · 8 comments
Open

Documentation request: e2e test with webhook #3454

vsoch opened this issue Jun 13, 2023 · 8 comments
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/documentation Categorizes issue or PR as related to documentation.

Comments

@vsoch
Copy link

vsoch commented Jun 13, 2023

Hi Kubebuilder developers! I am looking for an example of an e2e test that also includes adding the webhook. We have some logic that is set in the webhook, and would like it to be there for the e2e test. An example adding to the testEnv might look like this:

https://github.com/kubernetes-sigs/jobset/blob/cfd9d7ce33da7599cdbd2590884481a99403afb8/test/integration/webhook/suite_test.go#L63-L70

And maybe that is close, but I wasn't able to get something similar working in the e2e test (and maybe I just need a subset, or a way to edit the cfg object generated?) It would be great if the docs here could provide an example like this. Thank you!

@camilamacedo86
Copy link
Member

I think this one is interesting. Thank you for raising it.
It seems that would be very nice add an example in the docs over how to implement e2e test for the webhooks.

That would mean we improve the doc samples used so that we can do it in the tutorial.

@camilamacedo86 camilamacedo86 added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/documentation Categorizes issue or PR as related to documentation. labels Jun 14, 2023
@vsoch
Copy link
Author

vsoch commented Jun 14, 2023

@camilamacedo86 I don't think I can help here, but I just wanted to say I think you are a great maintainer! Your responsiveness on GitHub and in the slack (and interaction between the two) deserves a 👏. Thank you for doing what you do! <3

@ashutosh887
Copy link
Contributor

I can work on this @vsoch if @camilamacedo86 agrees

Thanks
/assign

@camilamacedo86
Copy link
Member

In this task we need to:

  • Check if we can improve the file scaffold for suite_test under api for webhooks
  • So, we need to check the options that we use for controllers ( under internal/controllers ) see if has something that we do there that we can either add to the suite test for webhooks.

@Sajiyah-Salat
Copy link
Contributor

Hello @ashutosh887 Are you working on this till now? It would be great for me to work on this and solve this issue.

@ashutosh887
Copy link
Contributor

Yes I'm on it @Sajiyah-Salat

@Sajiyah-Salat
Copy link
Contributor

Great please give me link of the pr or if you haven't started that yet

@drewwells
Copy link

Any updates on this? Jobset appears to be successfully updated for a number of API changes in webhook and controller manager https://github.com/kubernetes-sigs/jobset/blob/d5dbb51970d57197b493693295ec323b8e9598b9/test/integration/webhook/suite_test.go#L102-L107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
Development

No branches or pull requests

5 participants