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"` }