1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-18 08:14:56 +00:00

Allow filtering of dnsLabel fields

This commit is contained in:
Darren Shepherd
2018-04-13 09:59:49 -07:00
parent 7a9c998498
commit c5c5ff280d

View File

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