kubebuilder icon indicating copy to clipboard operation
kubebuilder copied to clipboard

Doc suggestion: Mutating Webhooks can't set status

Open erictune opened this issue 6 years ago • 5 comments
trafficstars

@akashrv @droot

Suggested additions to docs about admission webhooks:

"""Validating webhooks run after all mutating webhooks, so you don't need to worry about another webhook changing an object after your validation has accepted it."""

"""You cannot modify or default the status of a resource using a mutating admission webhook. Set initial status in your controller when you first see a new object."""

erictune avatar Mar 01 '19 22:03 erictune

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 Jun 04 '19 20:06 fejta-bot

/remove-lifecycle stale

DirectXMan12 avatar Jun 07 '19 01:06 DirectXMan12

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 Sep 05 '19 02:09 fejta-bot

/lifecycle frozen

DirectXMan12 avatar Sep 09 '19 14:09 DirectXMan12

"""You cannot modify or default the status of a resource using a mutating admission webhook. Set initial status in your controller when you first see a new object."""

Is this true? Where does this limitation come from? This has worked in kubebuilder v2 for us

ptnapoleon avatar Oct 14 '21 19:10 ptnapoleon