Skip to content

Commit 859f14e

Browse files
committed
lowercase ruletype
Signed-off-by: Lukas Hoehl <[email protected]>
1 parent 09fa395 commit 859f14e

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
@@ -365,7 +365,7 @@ func ruleCIDRsToPrincipal(rule *ACLRule, alwaysAllowedCIDRs []string) []*envoyco
365365
PrefixLen: wrapperspb.UInt32(uint32(length)),
366366
}
367367
p := new(envoyconfig_rbacv3.Principal)
368-
switch rule.Type {
368+
switch strings.ToLower(rule.Type) {
369369
case "source_ip":
370370
p.Identifier = &envoyconfig_rbacv3.Principal_SourceIp{SourceIp: &cidrRange}
371371
case "remote_ip":

0 commit comments

Comments
 (0)