kubernetes / kubernetes/kubernetes

modifying namespace spec.finalizers via PATCH should return a validation error

Open
#77,097 12 comments 0 reactions 0 assignees View on GitHub
kind/documentation lifecycle/frozen sig/api-machinery
Dominant language
Go
Stars
128k
Forks
44.3k
Avg merge
5d 17h
Merged PRs (30d)
208

Description

**What happened**:

PATCH `{"spec":{"finalizers":null}}` doesn't clear the finalizers and also doesn't return an error.

**What you expected to happen**: It should return an error (use the /finalize subresource).

**How to reproduce it (as minimally and precisely as possible)**: see #77086

Contributor guide

Open the contributing guide

Research direction

Start by examining how PATCH handles namespace spec.finalizers and compare it with the /finalize subresource behavior described in the issue. Use the minimal reproduction referenced by #77086; done means PATCH returns a validation error and finalizers can still be changed through /finalize.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.