From eefdc21488a4ec65787f946e0609bcbc2d64dc2f Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Sat, 14 Nov 2020 19:10:04 +0100 Subject: [PATCH] Add details about /status --- slides/k8s/kubebuilder.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/slides/k8s/kubebuilder.md b/slides/k8s/kubebuilder.md index 8f336332..1f25c430 100644 --- a/slides/k8s/kubebuilder.md +++ b/slides/k8s/kubebuilder.md @@ -331,6 +331,20 @@ Again - update, `make run`, test. --- +class: extra-details + +## Spec vs Status (in depth) + +- The `/status` subresource is handled differently by the API server + +- Updates to `/status` don't alter the rest of the object + +- Conversely, updates to the object ignore changes in the status + +(See [the docs](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#status-subresource) for the fine print.) + +--- + ## "Improving" our controller - We want to wait a few seconds before flipping the switch