From 51dde5ded9fa3e72b8e37d6e3fd3e7149e92b238 Mon Sep 17 00:00:00 2001 From: weekface Date: Wed, 31 Oct 2018 16:42:45 +0800 Subject: [PATCH] crd: add validation to crd (#153) --- manifests/crd.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/manifests/crd.yaml b/manifests/crd.yaml index 1404c1e151d..52de1732bbe 100644 --- a/manifests/crd.yaml +++ b/manifests/crd.yaml @@ -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