From 0ad2733a324500ce758d01befaa836109b77c0ab Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Tue, 29 Jan 2019 14:02:59 -0800 Subject: [PATCH] minLength to global dns api fields --- apis/management.cattle.io/v3/globaldns_types.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apis/management.cattle.io/v3/globaldns_types.go b/apis/management.cattle.io/v3/globaldns_types.go index 2368b36f..40da967f 100644 --- a/apis/management.cattle.io/v3/globaldns_types.go +++ b/apis/management.cattle.io/v3/globaldns_types.go @@ -48,12 +48,12 @@ type GlobalDNSProviderSpec struct { type Route53ProviderConfig struct { RootDomain string `json:"rootDomain" norman:"required"` - AccessKey string `json:"accessKey" norman:"required"` - SecretKey string `json:"secretKey" norman:"required,type=password"` + AccessKey string `json:"accessKey" norman:"notnullable,required,minLength=1"` + SecretKey string `json:"secretKey" norman:"notnullable,required,minLength=1,type=password"` } type CloudflareProviderConfig struct { RootDomain string `json:"rootDomain" norman:"required"` - APIKey string `json:"apiKey" norman:"notnullable,required,type=password"` - APIEmail string `json:"apiEmail" norman:"notnullable,required"` + APIKey string `json:"apiKey" norman:"notnullable,required,minLength=1,type=password"` + APIEmail string `json:"apiEmail" norman:"notnullable,required,minLength=1"` }