Skip to content

Commit

Permalink
removing configFileName unnessery variable for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
ShazaAldawamneh committed Jan 13, 2025
1 parent 3946300 commit 9121dba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kube-rbac-proxy/app/options/proxyoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ func (o *ProxyOptions) ApplyTo(krpInfo *server.KubeRBACProxyInfo, authInfo *serv
return fmt.Errorf("failed to setup transport for upstream: %w", err)
}

if configFileName := o.AuthzConfigFileName; len(configFileName) > 0 {
krpInfo.Authorization, err = parseAuthorizationConfigFile(configFileName)
if len(o.AuthzConfigFileName) > 0 {
krpInfo.Authorization, err = parseAuthorizationConfigFile(o.AuthzConfigFileName)
if err != nil {
return fmt.Errorf("failed to read the config file: %w", err)
}
Expand Down

0 comments on commit 9121dba

Please sign in to comment.