Skip to content

Commit

Permalink
crd: add validation to crd (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
weekface authored and tennix committed Oct 31, 2018
1 parent 58a5ab0 commit 51dde5d
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions manifests/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,49 @@ spec:
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- tc
validation:
# openAPIV3Schema is the schema for validating custom objects.
openAPIV3Schema:
properties:
spec:
properties:
pd:
properties:
limits:
properties:
cpu:
type: string
requests:
properties:
cpu:
type: string
tikv:
properties:
limits:
properties:
cpu:
type: string
requests:
properties:
cpu:
type: string
tidb:
properties:
limits:
properties:
cpu:
type: string
requests:
properties:
cpu:
type: string
tikvPromGateway:
properties:
limits:
properties:
cpu:
type: string
requests:
properties:
cpu:
type: string

0 comments on commit 51dde5d

Please sign in to comment.