@@ -42,11 +42,8 @@ type AuthenticationFilterList struct {
4242//
4343//nolint:lll
4444type AuthenticationFilterSpec struct {
45- // Type selects the authentication mechanism.
46- Type AuthType `json:"type"`
47-
48- // Basic configures HTTP Basic Authentication.
4945 Basic BasicAuth `json:"basic"`
46+ Type AuthType `json:"type"`
5047}
5148
5249// AuthType defines the authentication mechanism.
@@ -59,21 +56,12 @@ const (
5956
6057// BasicAuth configures HTTP Basic Authentication.
6158type BasicAuth struct {
62- // SecretRef allows referencing a Secret in the same namespace
63- SecretRef LocalObjectReference `json:"secretRef"`
64-
65- // Realm used by NGINX `auth_basic` directive.
66- // https://nginx.org/en/docs/http/ngx_http_auth_basic_module.html#auth_basic
67- // Also configures "realm="<realm_value>" in WWW-Authenticate header in error page location.
68- Realm string `json:"realm"`
69-
70- // OnFailure customizes the 401 response for failed authentication.
71- //
72- // +optional
7359 OnFailure * AuthFailureResponse `json:"onFailure,omitempty"`
60+ SecretRef LocalObjectReference `json:"secretRef"`
61+ Realm string `json:"realm"`
7462}
7563
76- // LocalObjectReference specifies a local Kubernetes object
64+ // LocalObjectReference specifies a local Kubernetes object.
7765type LocalObjectReference struct {
7866 Name string `json:"name"`
7967}
@@ -144,7 +132,7 @@ const (
144132 // * Accepted
145133 //
146134 // Possible reasons for this condition to be False:
147- // * Invalid
135+ // * Invalid.
148136 AuthenticationFilterConditionTypeAccepted AuthenticationFilterConditionType = "Accepted"
149137
150138 // AuthenticationFilterConditionReasonAccepted is used with the Accepted condition type when
0 commit comments