Skip to content

Commit d2ae94e

Browse files
committed
address issues for failing ci
Signed-off-by: sachin maurya <[email protected]>
1 parent 4f1072f commit d2ae94e

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
@@ -328,8 +328,6 @@ xdsIR:
328328
issuer: https://one.example.com
329329
name: example1
330330
remoteJWKS:
331-
asyncFetch: null
332-
cacheDuration: null
333331
uri: https://one.example.com/jwt/public-key/jwks.json
334332
- audiences:
335333
- two.foo.com
@@ -339,8 +337,6 @@ xdsIR:
339337
issuer: http://two.example.com
340338
name: example2
341339
remoteJWKS:
342-
asyncFetch: null
343-
cacheDuration: null
344340
uri: http://two.example.com/jwt/public-key/jwks.json
345341
readyListener:
346342
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
@@ -625,8 +625,6 @@ xdsIR:
625625
issuer: https://one.example.com
626626
name: example1
627627
remoteJWKS:
628-
asyncFetch: null
629-
cacheDuration: null
630628
uri: https://one.example.com/jwt/public-key/jwks.json
631629
- destination:
632630
metadata:
@@ -737,8 +735,6 @@ xdsIR:
737735
issuer: https://one.example.com
738736
name: example1
739737
remoteJWKS:
740-
asyncFetch: null
741-
cacheDuration: null
742738
uri: https://one.example.com/jwt/public-key/jwks.json
743739
- address: 0.0.0.0
744740
hostnames:

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ xdsIR:
230230
issuer: https://two.example.com
231231
name: example1
232232
remoteJWKS:
233-
asyncFetch: null
234-
cacheDuration: null
235233
uri: https://two.example.com/jwt/public-key/jwks.json
236234
readyListener:
237235
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
@@ -295,8 +295,6 @@ xdsIR:
295295
issuer: https://one.example.com
296296
name: example1
297297
remoteJWKS:
298-
asyncFetch: null
299-
cacheDuration: null
300298
uri: https://one.example.com/jwt/public-key/jwks.json
301299
- destination:
302300
metadata:
@@ -340,8 +338,6 @@ xdsIR:
340338
issuer: https://two.example.com
341339
name: example2
342340
remoteJWKS:
343-
asyncFetch: null
344-
cacheDuration: null
345341
uri: https://one.example.com/jwt/public-key/jwks.json
346342
readyListener:
347343
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
@@ -265,8 +265,6 @@ xdsIR:
265265
issuer: https://foo.bar.com
266266
name: foobar
267267
remoteJWKS:
268-
asyncFetch: null
269-
cacheDuration: null
270268
destination:
271269
metadata:
272270
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
@@ -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
@@ -428,8 +424,6 @@ xdsIR:
428424
issuer: https://three.example.com
429425
name: example3
430426
remoteJWKS:
431-
asyncFetch: null
432-
cacheDuration: null
433427
uri: https://three.example.com/jwt/public-key/jwks.json
434428
readyListener:
435429
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
@@ -247,8 +247,6 @@ xdsIR:
247247
issuer: https://foo.bar.com
248248
name: foobar
249249
remoteJWKS:
250-
asyncFetch: null
251-
cacheDuration: null
252250
destination:
253251
metadata:
254252
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
@@ -339,8 +339,6 @@ xdsIR:
339339
issuer: https://one.example.com
340340
name: example1
341341
remoteJWKS:
342-
asyncFetch: null
343-
cacheDuration: null
344342
uri: https://one.example.com/jwt/public-key/jwks.json
345343
- audiences:
346344
- two.foo.com
@@ -350,8 +348,6 @@ xdsIR:
350348
issuer: https://two.example.com
351349
name: example2
352350
remoteJWKS:
353-
asyncFetch: null
354-
cacheDuration: null
355351
uri: https://two.example.com/jwt/public-key/jwks.json
356352
readyListener:
357353
address: 0.0.0.0
@@ -426,8 +422,6 @@ xdsIR:
426422
issuer: https://three.example.com
427423
name: example3
428424
remoteJWKS:
429-
asyncFetch: null
430-
cacheDuration: null
431425
uri: https://three.example.com/jwt/public-key/jwks.json
432426
readyListener:
433427
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
@@ -331,8 +331,6 @@ xdsIR:
331331
issuer: https://one.example.com
332332
name: example1
333333
remoteJWKS:
334-
asyncFetch: null
335-
cacheDuration: null
336334
uri: https://one.example.com/jwt/public-key/jwks.json
337335
- audiences:
338336
- two.foo.com
@@ -342,8 +340,6 @@ xdsIR:
342340
issuer: http://two.example.com
343341
name: example2
344342
remoteJWKS:
345-
asyncFetch: null
346-
cacheDuration: null
347343
uri: http://two.example.com/jwt/public-key/jwks.json
348344
readyListener:
349345
address: 0.0.0.0
@@ -410,8 +406,6 @@ xdsIR:
410406
issuer: https://three.example.com
411407
name: example3
412408
remoteJWKS:
413-
asyncFetch: null
414-
cacheDuration: null
415409
uri: https://three.example.com/jwt/public-key/jwks.json
416410
readyListener:
417411
address: 0.0.0.0

0 commit comments

Comments
 (0)