kubebuilder icon indicating copy to clipboard operation
kubebuilder copied to clipboard

The book should document declarative defaulting

Open DirectXMan12 opened this issue 4 years ago • 18 comments

We should document declarative defaulting better in the book, since it's been supported for quite a few versions now. We'll need to warn about Kubernetes versions with a note like we do here: https://github.com/kubernetes-sigs/kubebuilder/blame/master/docs/book/src/multiversion-tutorial/tutorial.md#L26, but we should reccomend this over using mutating webhooks when possible.

/kind feature

DirectXMan12 avatar Jul 30 '20 21:07 DirectXMan12

/good-first-issue

(this entails moving the current "defaulting webhook" documentation to a standalone tutorial and editing the page where we go over types and validation markers to talk about defaulting markers too)

DirectXMan12 avatar Jul 30 '20 21:07 DirectXMan12

@DirectXMan12: This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-good-first-issue command.

In response to this:

/good-first-issue

(this entails moving the current "defaulting webhook" documentation to a standalone tutorial and editing the page where we go over types and validation markers to talk about defaulting markers too)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Jul 30 '20 21:07 k8s-ci-robot

/assign

krol3 avatar Aug 26 '20 19:08 krol3

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

fejta-bot avatar Feb 01 '21 11:02 fejta-bot

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-contributor-experience at kubernetes/community. /lifecycle rotten

fejta-bot avatar Mar 03 '21 12:03 fejta-bot

/lifecycle frozen

Adirio avatar Mar 24 '21 12:03 Adirio

I see you are assigned @krol3, don't know if you are working on it or this is still relevant. But if it's still relevant and you are ok with this I would love to give this a try :)

stijndehaes avatar May 09 '21 10:05 stijndehaes

@stijndehaes please give a try. I didn't have time to do it.

krol3 avatar May 09 '21 11:05 krol3

@DirectXMan12 Since it's been a long time ago I think it's better that I propose what I think I have to do before starting so here it goes:

  • The page about implementing defaulting/validating webhook has to be moved to reference. Since we want people to use default/validation markers in the tutorial
  • Add a new page in the tutorial instead of the webhook page that uses a default marker and a validation marker. Only thing I am not sure of is the validateScheduleFormat function this is impossible to write with validation markers I believe. So maybe for that we keep a validating webhook in the tutorial? Or we might just past a link to the reference defaulting/validating webhook page.

If my idea is ok please let me know and I'll get started on it :) Otherwise please feel free to give me some of your ideas.

stijndehaes avatar May 09 '21 12:05 stijndehaes

/remove-lifecycle rotten

camilamacedo86 avatar Oct 13 '21 08:10 camilamacedo86

@camilamacedo86 @DirectXMan12 , Can I work on this issue?

parul5sahoo avatar Apr 11 '22 07:04 parul5sahoo

Yes, it is not assigned to anybody. Please, feel free to get this one.

camilamacedo86 avatar Apr 20 '22 13:04 camilamacedo86

/assign

parul5sahoo avatar Apr 21 '22 14:04 parul5sahoo

Hey @camilamacedo86 having gone through the previous comments I suppose, I need to move this document into a tutorial in this section as 2.3.2 or 2.3.1.1... where we take this into consideration :

but we should recommend this over using mutating webhooks when possible.

Then add a new page in this section namely 5.6.7 to talk about default markers as mentioned in

(this entails moving the current "defaulting webhook" documentation to a standalone tutorial and editing the page where we go over types and validation markers to talk about defaulting markers too)

parul5sahoo avatar Apr 25 '22 04:04 parul5sahoo

Hi @parul5sahoo,

Hello, are you working on this one? If not could you please unsigned so that you let others try to check this one?

camilamacedo86 avatar Sep 12 '22 06:09 camilamacedo86

/assign

sayantani11 avatar Mar 14 '23 15:03 sayantani11

Hey @sayantani11 if you wish we can work on this issue together /assign

ashutosh887 avatar Mar 16 '23 16:03 ashutosh887

Hi @sayantani11 and @ashutosh887,

Are you working on this one? If not, could you please remove the /assign?

camilamacedo86 avatar Sep 13 '23 21:09 camilamacedo86