-
Hello, I have created my own resource definition and I would like to be able to assign it a default status when creating this resource. However, the status field is absolutely not taken into account during creation, is this normal? Thanks in advance for those who will help me! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yeah, this is normal. Applies (via Status objects are designed to only be set by controllers and need special methods to be set ( |
Beta Was this translation helpful? Give feedback.
Yeah, this is normal. Applies (via
patch
,create
orreplace
) only affect the main part of the resource (i.e. the spec part). The same is true forkubectl 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).