1
0
mirror of https://github.com/rancher/types.git synced 2025-08-15 03:02:59 +00:00

Merge pull request #261 from alena1108/namerequireddns

Name is required for dns record
This commit is contained in:
Alena Prokharchyk 2018-02-28 11:38:19 -08:00 committed by GitHub
commit d3064b6969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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