1
0
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:
Alena Prokharchyk 2018-02-22 14:14:53 -08:00
parent 1128e91b41
commit 8c0699bc8d

View File

@ -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
})
})
}