1
0
mirror of https://github.com/rancher/types.git synced 2025-09-18 16:10:58 +00:00

Ingress name type to hostname

This commit is contained in:
Alena Prokharchyk
2019-07-22 11:34:00 -07:00
parent aa57f8af4e
commit 4f65b5d2da

View File

@@ -700,6 +700,7 @@ func ingressTypes(schemas *types.Schemas) *types.Schemas {
}{}).
MustImportAndCustomize(&Version, v1beta1.Ingress{}, func(schema *types.Schema) {
schema.MustCustomizeField("name", func(f types.Field) types.Field {
f.Type = "hostname"
f.Required = true
f.Nullable = false
return f