Skip to content

Create a resource with a default status ? #961

Answered by clux
EliXorZz asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, this is normal. Applies (via patch, create or replace) only affect the main part of the resource (i.e. the spec part). The same is true for kubectl apply.

Status objects are designed to only be set by controllers and need special methods to be set (patch_status, create_status, replace_status). I have never seen a resource with a default status (unless you count null/None).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@EliXorZz
Comment options

@clux
Comment options

Answer selected by EliXorZz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants