1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-15 23:01:40 +00:00

Add hostname tag and fix dnsLabel validation issue

This commit is contained in:
zionwu
2018-05-18 14:43:44 +08:00
committed by Denise
parent 6a363d8e93
commit 79b91ea33c
3 changed files with 16 additions and 0 deletions

View File

@@ -101,6 +101,8 @@ func (s *Schemas) setupFilters(schema *Schema) {
mods = []ModifierType{ModifierEQ, ModifierNE, ModifierIn, ModifierNotIn}
case "dnsLabel":
fallthrough
case "hostname":
fallthrough
case "string":
mods = []ModifierType{ModifierEQ, ModifierNE, ModifierIn, ModifierNotIn}
case "int":