From 5062d58753e32d08e65fb1807d0a90a3f13b1ffd Mon Sep 17 00:00:00 2001 From: zionwu Date: Fri, 18 May 2018 14:45:44 +0800 Subject: [PATCH] Change from dnsLabel to hostname for smtp host --- apis/management.cattle.io/v3/alerting_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/management.cattle.io/v3/alerting_types.go b/apis/management.cattle.io/v3/alerting_types.go index 0b7bfa67..ea62ed3b 100644 --- a/apis/management.cattle.io/v3/alerting_types.go +++ b/apis/management.cattle.io/v3/alerting_types.go @@ -133,7 +133,7 @@ type Notification struct { } type SMTPConfig struct { - Host string `json:"host,omitempty" norman:"required,type=dnsLabel"` + Host string `json:"host,omitempty" norman:"required,type=hostname"` Port int `json:"port,omitempty" norman:"required,min=1,max=65535,default=587"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"`