1
0
mirror of https://github.com/rancher/types.git synced 2025-06-27 14:06:49 +00:00

Machine requestedHostname required

This commit is contained in:
Darren Shepherd 2018-02-06 18:18:20 -07:00
parent f1441a87c3
commit ade26b3002

View File

@ -121,7 +121,7 @@ type MachineSpec struct {
Imported bool `json:"imported"`
Description string `json:"description,omitempty"`
DisplayName string `json:"displayName"`
RequestedHostname string `json:"requestedHostname,omitempty" norman:"type=dnsLabel,nullable,noupdate"`
RequestedHostname string `json:"requestedHostname,omitempty" norman:"type=dnsLabel,nullable,noupdate,required"`
ClusterName string `json:"clusterName,omitempty" norman:"type=reference[cluster],noupdate,required"`
Role []string `json:"role,omitempty" norman:"noupdate,type=array[enum],options=etcd|worker|controlplane"`
MachineTemplateName string `json:"machineTemplateName,omitempty" norman:"type=reference[machineTemplate],noupdate"`