diff --git a/slides/k8s/crd.md b/slides/k8s/crd.md index 410d5d35..0df555c9 100644 --- a/slides/k8s/crd.md +++ b/slides/k8s/crd.md @@ -105,7 +105,7 @@ spec: .lab[ -- Create a few types of coffee beans: +- Try to create a few types of coffee beans: ```bash kubectl apply -f ~/container.training/k8s/coffees.yaml ``` @@ -114,6 +114,20 @@ spec: --- +## Type validation + +- Older versions of Kubernetes will accept our coffee beans as is + +- Newer versions, however, will issue warnings about unknown fields + + (and if we turn off validation, these fields will simply be dropped) + +- We need to improve our OpenAPI schema + + (to add e.g. the `spec.taste` field used by our coffee resources) + +--- + ## Viewing custom resources - By default, `kubectl get` only shows name and age of custom resources