Skip to content

Commit 70caae2

Browse files
committed
Change LocalObjectReferenceWithKey to LocalObjectReference
1 parent f931a65 commit 70caae2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/proposals/authentication-filter.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const (
152152
// BasicAuth configures HTTP Basic Authentication.
153153
type BasicAuth struct {
154154
// SecretRef allows referencing a Secret in the same namespace
155-
SecretRef LocalObjectReferenceWithKey `json:"secretRef,omitempty"`
155+
SecretRef LocalObjectReference `json:"secretRef,omitempty"`
156156

157157
// Realm used by NGINX `auth_basic` directive.
158158
// https://nginx.org/en/docs/http/ngx_http_auth_basic_module.html#auth_basic
@@ -242,7 +242,7 @@ type JWTAuth struct {
242242
// JWTFileKeySource specifies local JWKS key configuration.
243243
type JWTFileKeySource struct {
244244
// SecretRef references a Secret containing the JWKS.
245-
SecretRef LocalObjectReferenceWithKey `json:"secretRef,omitempty"`
245+
SecretRef LocalObjectReference `json:"secretRef,omitempty"`
246246

247247
// KeyCache is the cache duration for keys.
248248
// Configures `auth_jwt_key_cache` directive.
@@ -253,9 +253,9 @@ type JWTFileKeySource struct {
253253
KeyCache *v1alpha1.Duration `json:"keyCache,omitempty"`
254254
}
255255

256-
// LocalObjectReferenceWithKey specifies a local Kubernetes object
256+
// LocalObjectReference specifies a local Kubernetes object
257257
// with a required `key` field to extract data.
258-
type LocalObjectReferenceWithKey struct {
258+
type LocalObjectReference struct {
259259
Name string: `json:"name"`
260260

261261
Key string `json:"key"`

0 commit comments

Comments
 (0)