mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-02-23 01:42:51 +08:00
Update doc about json tag is needed to generate informer externalverion package
Kubernetes-commit: e98a28e5c78e9d6bf428ecd614ddf62083b0ea9a
This commit is contained in:
parent
f642284f7b
commit
66316083a5
@ -126,6 +126,9 @@ type User struct {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note, json tag `json:` is needed to generate informer externalversions package.
|
||||||
|
Otherwise, informer internalversion package is generated.
|
||||||
|
|
||||||
## Validation
|
## Validation
|
||||||
|
|
||||||
To validate custom resources, use the [`CustomResourceValidation`](https://kubernetes.io/docs/tasks/access-kubernetes-api/extend-api-custom-resource-definitions/#validation) feature. Validation in the form of a [structured schema](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema) is mandatory to be provided for `apiextensions.k8s.io/v1`.
|
To validate custom resources, use the [`CustomResourceValidation`](https://kubernetes.io/docs/tasks/access-kubernetes-api/extend-api-custom-resource-definitions/#validation) feature. Validation in the form of a [structured schema](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema) is mandatory to be provided for `apiextensions.k8s.io/v1`.
|
||||||
|
Loading…
Reference in New Issue
Block a user