Skip to content

Commit

Permalink
did the service account incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
missylbytes committed Aug 7, 2023
1 parent cfd9984 commit c25cb65
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions control-plane/api-gateway/gatekeeper/gatekeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@ func (g *Gatekeeper) namespacedName(gateway gwv1beta1.Gateway) types.NamespacedN
}

func (g *Gatekeeper) serviceAccountName(gateway gwv1beta1.Gateway, config common.HelmConfig) string {
if config.EnableOpenShift {
return getOpenshiftName(gateway)
}
if config.AuthMethod == "" {
if config.AuthMethod == "" && !config.EnableOpenShift {
return ""
}
return gateway.Name
Expand Down

0 comments on commit c25cb65

Please sign in to comment.