diff --git a/apis/project.cattle.io/v3/schema/schema.go b/apis/project.cattle.io/v3/schema/schema.go index 8ec8b5ba..470289fc 100644 --- a/apis/project.cattle.io/v3/schema/schema.go +++ b/apis/project.cattle.io/v3/schema/schema.go @@ -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 + }) }) }