From 013da612d0e7d2ac386403b959efb2341d766877 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Wed, 5 Sep 2018 09:29:27 -0700 Subject: [PATCH] Removed dnsLabel frm hostname prefix type as it can end with "-" - something that is not allowed by the dnsLabel format --- apis/management.cattle.io/v3/machine_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/management.cattle.io/v3/machine_types.go b/apis/management.cattle.io/v3/machine_types.go index 3c2d626c..071a273b 100644 --- a/apis/management.cattle.io/v3/machine_types.go +++ b/apis/management.cattle.io/v3/machine_types.go @@ -144,7 +144,7 @@ type NodePoolSpec struct { Worker bool `json:"worker"` NodeTemplateName string `json:"nodeTemplateName,omitempty" norman:"type=reference[nodeTemplate],required,notnullable"` - HostnamePrefix string `json:"hostnamePrefix" norman:"type=dnsLabel,required,notnullable"` + HostnamePrefix string `json:"hostnamePrefix" norman:"required,notnullable"` Quantity int `json:"quantity" norman:"required,default=1"` NodeLabels map[string]string `json:"nodeLabels"` NodeAnnotations map[string]string `json:"nodeAnnotations"`