Skip to content

Commit 76240ec

Browse files
committed
address issues for failing ci
Signed-off-by: sachin maurya <[email protected]>
1 parent 208005d commit 76240ec

16 files changed

+24
-47
lines changed

api/v1alpha1/jwt_types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,22 +111,22 @@ type RemoteJWKS struct {
111111
// +kubebuilder:validation:MinLength=1
112112
// +kubebuilder:validation:MaxLength=253
113113
URI string `json:"uri"`
114-
//Duration after which the cached JWKS should be expired. If not specified, default cache duration is 5 minutes.
114+
// Duration after which the cached JWKS should be expired. If not specified, default cache duration is 5 minutes.
115115

116116
// +kubebuilder:default="300s"
117117
// +kubebuilder:validation:Format=duration
118118
// +optional
119119
CacheDuration *metav1.Duration `json:"cacheDuration,omitempty"`
120120

121-
//Fetch Jwks asynchronously in the main thread before the listener is activated. Fetched Jwks can be used by all worker threads.
121+
// Fetch Jwks asynchronously in the main thread before the listener is activated. Fetched Jwks can be used by all worker threads.
122122
// +optional
123123
AsyncFetch *JwksAsyncFetch `json:"asyncFetch,omitempty"`
124124
}
125125

126126
// JwksAsyncFetch is used to Fetch Jwks asynchronously in the main thread before the listener is activated.
127127
type JwksAsyncFetch struct {
128-
//If false, the listener is activated after the initial fetch is completed. The initial fetch result can be either successful or failed.
129-
//If true, it is activated without waiting for the initial fetch to complete.
128+
// If false, the listener is activated after the initial fetch is completed. The initial fetch result can be either successful or failed.
129+
// If true, it is activated without waiting for the initial fetch to complete.
130130

131131
// +optional
132132
FastListener bool `json:"fastListener,omitempty"`

internal/gatewayapi/testdata/custom-filter-order.out.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,6 @@ xdsIR:
343343
issuer: https://one.example.com
344344
name: example1
345345
remoteJWKS:
346-
asyncFetch: null
347-
cacheDuration: null
348346
uri: https://one.example.com/jwt/public-key/jwks.json
349347
- audiences:
350348
- two.foo.com
@@ -354,8 +352,6 @@ xdsIR:
354352
issuer: http://two.example.com
355353
name: example2
356354
remoteJWKS:
357-
asyncFetch: null
358-
cacheDuration: null
359355
uri: http://two.example.com/jwt/public-key/jwks.json
360356
readyListener:
361357
address: 0.0.0.0

internal/gatewayapi/testdata/securitypolicy-override-replace.out.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,6 @@ xdsIR:
721721
issuer: https://one.example.com
722722
name: example1
723723
remoteJWKS:
724-
asyncFetch: null
725-
cacheDuration: null
726724
uri: https://one.example.com/jwt/public-key/jwks.json
727725
- destination:
728726
metadata:
@@ -833,8 +831,6 @@ xdsIR:
833831
issuer: https://one.example.com
834832
name: example1
835833
remoteJWKS:
836-
asyncFetch: null
837-
cacheDuration: null
838834
uri: https://one.example.com/jwt/public-key/jwks.json
839835
- address: 0.0.0.0
840836
externalPort: 80

internal/gatewayapi/testdata/securitypolicy-with-authoriztion-jwt-claim.out.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,6 @@ xdsIR:
246246
issuer: https://two.example.com
247247
name: example1
248248
remoteJWKS:
249-
asyncFetch: null
250-
cacheDuration: null
251249
uri: https://two.example.com/jwt/public-key/jwks.json
252250
readyListener:
253251
address: 0.0.0.0

internal/gatewayapi/testdata/securitypolicy-with-jwt-and-invalid-oidc.out.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@ xdsIR:
311311
issuer: https://one.example.com
312312
name: example1
313313
remoteJWKS:
314-
asyncFetch: null
315-
cacheDuration: null
316314
uri: https://one.example.com/jwt/public-key/jwks.json
317315
- destination:
318316
metadata:
@@ -356,8 +354,6 @@ xdsIR:
356354
issuer: https://two.example.com
357355
name: example2
358356
remoteJWKS:
359-
asyncFetch: null
360-
cacheDuration: null
361357
uri: https://one.example.com/jwt/public-key/jwks.json
362358
readyListener:
363359
address: 0.0.0.0

internal/gatewayapi/testdata/securitypolicy-with-jwt-backendcluster.out.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,6 @@ xdsIR:
281281
issuer: https://foo.bar.com
282282
name: foobar
283283
remoteJWKS:
284-
asyncFetch: null
285-
cacheDuration: null
286284
destination:
287285
metadata:
288286
kind: SecurityPolicy

internal/gatewayapi/testdata/securitypolicy-with-jwt-optional.out.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,6 @@ xdsIR:
341341
issuer: https://one.example.com
342342
name: example1
343343
remoteJWKS:
344-
asyncFetch: null
345-
cacheDuration: null
346344
uri: https://one.example.com/jwt/public-key/jwks.json
347345
- audiences:
348346
- two.foo.com
@@ -352,8 +350,6 @@ xdsIR:
352350
issuer: https://two.example.com
353351
name: example2
354352
remoteJWKS:
355-
asyncFetch: null
356-
cacheDuration: null
357353
uri: https://two.example.com/jwt/public-key/jwks.json
358354
readyListener:
359355
address: 0.0.0.0
@@ -440,8 +436,6 @@ xdsIR:
440436
issuer: https://three.example.com
441437
name: example3
442438
remoteJWKS:
443-
asyncFetch: null
444-
cacheDuration: null
445439
uri: https://three.example.com/jwt/public-key/jwks.json
446440
readyListener:
447441
address: 0.0.0.0

internal/gatewayapi/testdata/securitypolicy-with-jwt-serviceimport.out.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,6 @@ xdsIR:
263263
issuer: https://foo.bar.com
264264
name: foobar
265265
remoteJWKS:
266-
asyncFetch: null
267-
cacheDuration: null
268266
destination:
269267
metadata:
270268
kind: SecurityPolicy

internal/gatewayapi/testdata/securitypolicy-with-jwt-with-custom-extractor.out.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,6 @@ xdsIR:
340340
issuer: https://one.example.com
341341
name: example1
342342
remoteJWKS:
343-
asyncFetch: null
344-
cacheDuration: null
345343
uri: https://one.example.com/jwt/public-key/jwks.json
346344
- audiences:
347345
- two.foo.com
@@ -351,8 +349,6 @@ xdsIR:
351349
issuer: https://two.example.com
352350
name: example2
353351
remoteJWKS:
354-
asyncFetch: null
355-
cacheDuration: null
356352
uri: https://two.example.com/jwt/public-key/jwks.json
357353
readyListener:
358354
address: 0.0.0.0
@@ -438,8 +434,6 @@ xdsIR:
438434
issuer: https://three.example.com
439435
name: example3
440436
remoteJWKS:
441-
asyncFetch: null
442-
cacheDuration: null
443437
uri: https://three.example.com/jwt/public-key/jwks.json
444438
readyListener:
445439
address: 0.0.0.0

internal/gatewayapi/testdata/securitypolicy-with-jwt.out.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,6 @@ xdsIR:
332332
issuer: https://one.example.com
333333
name: example1
334334
remoteJWKS:
335-
asyncFetch: null
336-
cacheDuration: null
337335
uri: https://one.example.com/jwt/public-key/jwks.json
338336
- audiences:
339337
- two.foo.com
@@ -343,8 +341,6 @@ xdsIR:
343341
issuer: http://two.example.com
344342
name: example2
345343
remoteJWKS:
346-
asyncFetch: null
347-
cacheDuration: null
348344
uri: http://two.example.com/jwt/public-key/jwks.json
349345
readyListener:
350346
address: 0.0.0.0
@@ -422,8 +418,6 @@ xdsIR:
422418
issuer: https://three.example.com
423419
name: example3
424420
remoteJWKS:
425-
asyncFetch: null
426-
cacheDuration: null
427421
uri: https://three.example.com/jwt/public-key/jwks.json
428422
readyListener:
429423
address: 0.0.0.0

0 commit comments

Comments
 (0)