📃 Mention type validation issues for CRDs

This commit is contained in:
Jérôme Petazzoni
2022-06-06 13:59:13 +02:00
parent abb0fbe364
commit f65ca19b44

View File

@@ -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