feat(webhook): validate dashboard auth spec
- will check whether either OIDC issuer or oauth2 endpoints are set - will check whether basic auth credentials are configured
This commit is contained in:
parent
3c13eb0d6b
commit
9d02a2d90b
2 changed files with 60 additions and 2 deletions
api/v1alpha1
|
@ -204,6 +204,14 @@ func (s *DashboardEndpointSpec) OAuth2() *DashboardOAuth2Spec {
|
|||
return s.Auth.OAuth2
|
||||
}
|
||||
|
||||
func (s *DashboardEndpointSpec) Basic() *DashboardBasicAuthSpec {
|
||||
if s == nil || s.Auth == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
return s.Auth.Basic
|
||||
}
|
||||
|
||||
// APIGatewaySpec defines the desired state of APIGateway.
|
||||
type APIGatewaySpec struct {
|
||||
// Envoy - configure the envoy instance and most importantly the control-plane
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue