mirror of
https://github.com/rancher/types.git
synced 2025-09-01 05:09:10 +00:00
Merge pull request #1160 from ryansann/resource-name-validation-backport-2.4
[2.4] Backport Relax Resource Name Validation - ConfigMaps, Secrets, PVs, PVCs
This commit is contained in:
@@ -98,6 +98,12 @@ func mgmtSecretTypes(schemas *types.Schemas) *types.Schemas {
|
||||
schema.PluralName = "managementSecrets"
|
||||
schema.CodeName = "ManagementSecret"
|
||||
schema.CodeNamePlural = "ManagementSecrets"
|
||||
schema.MustCustomizeField("name", func(field types.Field) types.Field {
|
||||
field.Type = "hostname"
|
||||
field.Nullable = false
|
||||
field.Required = true
|
||||
return field
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user