Skip to content

Commit

Permalink
Copy helpful comment added elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancoleman committed Sep 25, 2024
1 parent 8260f94 commit 16fceb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions control-plane/api-gateway/gatekeeper/gatekeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ func (g *Gatekeeper) namespacedName(gateway gwv1beta1.Gateway) types.NamespacedN
}

func (g *Gatekeeper) serviceAccountName(gateway gwv1beta1.Gateway, config common.HelmConfig) string {
// We only create a ServiceAccount if it's needed for RBAC or image pull secrets;
// otherwise, we clean up if one was previously created.
if config.AuthMethod == "" && !config.EnableOpenShift && len(config.ImagePullSecrets) == 0 {
return ""
}
Expand Down

0 comments on commit 16fceb9

Please sign in to comment.