1
0
mirror of https://github.com/rancher/types.git synced 2025-06-26 21:51:33 +00:00

Merge pull request #241 from alena1108/namerequired

Workload name is required
This commit is contained in:
Alena Prokharchyk 2018-02-22 22:10:36 -08:00 committed by GitHub
commit 6b3cc902e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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