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:
parent
dcfe466e8c
commit
559122d2a2
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user