1
0
mirror of https://github.com/rancher/types.git synced 2025-09-13 13:33:06 +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
})
})
}