1
0
mirror of https://github.com/rancher/types.git synced 2025-07-19 07:46:25 +00:00

Name is required for dns record

This commit is contained in:
Alena Prokharchyk 2018-02-28 11:27:47 -08:00
parent dcfe466e8c
commit 559122d2a2

View File

@ -560,6 +560,12 @@ func addServiceOrDNSRecord(dns bool) types.SchemasInitFunc {
f.Update = false
return f
})
schema.MustCustomizeField("name", func(field types.Field) types.Field {
field.Type = "dnsLabel"
field.Nullable = false
field.Required = true
return field
})
}
}, projectOverride{}, struct {
Description string `json:"description"`