Skip to content

Commit 9e7beaf

Browse files
committed
lowercase ruletype
Signed-off-by: Lukas Hoehl <[email protected]>
1 parent e1e41e3 commit 9e7beaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/envoyfilters/envoyfilters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ func ruleCIDRsToPrincipal(rule *ACLRule, alwaysAllowedCIDRs []string) []*envoyco
371371
PrefixLen: wrapperspb.UInt32(uint32(length)),
372372
}
373373
p := new(envoyconfig_rbacv3.Principal)
374-
switch rule.Type {
374+
switch strings.ToLower(rule.Type) {
375375
case "source_ip":
376376
p.Identifier = &envoyconfig_rbacv3.Principal_SourceIp{SourceIp: &cidrRange}
377377
case "remote_ip":

0 commit comments

Comments
 (0)