mirror of
https://github.com/rancher/types.git
synced 2025-06-26 05:31:32 +00:00
Workload name is required
This commit is contained in:
parent
1128e91b41
commit
8c0699bc8d
@ -109,6 +109,12 @@ func workloadTypes(schemas *types.Schemas) *types.Schemas {
|
||||
schema.ResourceFields[name] = field
|
||||
}
|
||||
}
|
||||
schema.MustCustomizeField("name", func(field types.Field) types.Field {
|
||||
field.Type = "dnsLabel"
|
||||
field.Nullable = false
|
||||
field.Required = true
|
||||
return field
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user