mirror of
https://github.com/kubernetes/sample-controller.git
synced 2026-02-04 00:06:14 +08:00
Add CustomResourceValidation example in sample-controller
- Mention the schema in the example CRD. - Update README and mention about feature gates. Kubernetes-commit: 74c9efa148ac6591a1dcf8f95c7fdac35aa603d0
This commit is contained in:
committed by
Kubernetes Publisher
parent
9ba34a0e65
commit
735feeca90
@@ -9,3 +9,12 @@ spec:
|
||||
kind: Foo
|
||||
plural: foos
|
||||
scope: Namespaced
|
||||
validation:
|
||||
openAPIV3Schema:
|
||||
properties:
|
||||
spec:
|
||||
properties:
|
||||
replicas:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 10
|
||||
|
||||
Reference in New Issue
Block a user