Skip to content

Commit

Permalink
adding testing statements
Browse files Browse the repository at this point in the history
  • Loading branch information
missylbytes committed Aug 7, 2023
1 parent c6c9a0b commit 31773b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion control-plane/api-gateway/gatekeeper/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,13 @@ func (g *Gatekeeper) role(gateway gwv1beta1.Gateway, gcc v1alpha1.GatewayClassCo
}

if config.EnableOpenShift {
g.Log.Info("------------------------------------------Openshift Enabled")
role.Rules = append(role.Rules, rbac.PolicyRule{
APIGroups: []string{"security.openshift.io"},
Resources: []string{"securitycontextconstraints"},
// TODO(nathancoleman) Consider accepting an explicit SCC name. This will make the code
// here less brittle and allow for the user to provide their own SCC if they wish.
ResourceNames: []string{config.ReleaseName + "-api-gateway"},
ResourceNames: []string{config.ReleaseName + "-api-gateway", "gateway-*"},
Verbs: []string{"use"},
})
}
Expand Down

0 comments on commit 31773b6

Please sign in to comment.