Skip to content

Commit c4308f3

Browse files
committed
make gen
Signed-off-by: Karol Szwaj <[email protected]>
1 parent 9da99f2 commit c4308f3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+14
-43
lines changed

internal/infrastructure/kubernetes/proxy/resource.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func expectedContainerVolumeMounts(containerSpec *egv1a1.KubernetesContainerSpec
308308
}
309309

310310
// expectedVolumes returns expected proxy deployment volumes.
311-
func expectedVolumes(name string, gatewayNamespacedMode bool, pod *egv1a1.KubernetesPodSpec, controllerNamespace string, dnsDomain string) []corev1.Volume {
311+
func expectedVolumes(name string, gatewayNamespacedMode bool, pod *egv1a1.KubernetesPodSpec, controllerNamespace, dnsDomain string) []corev1.Volume {
312312
var volumes []corev1.Volume
313313
certsVolume := corev1.Volume{
314314
Name: "certs",

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/component-level.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/custom.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ spec:
3333
gateway.envoyproxy.io/owning-gateway-name: default
3434
gateway.envoyproxy.io/owning-gateway-namespace: default
3535
spec:
36-
automountServiceAccountToken: false
3736
containers:
3837
- args:
3938
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/default-env.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/default.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/disable-prometheus.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ spec:
2828
gateway.envoyproxy.io/owning-gateway-name: default
2929
gateway.envoyproxy.io/owning-gateway-namespace: default
3030
spec:
31-
automountServiceAccountToken: false
3231
containers:
3332
- args:
3433
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/extension-env.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/override-labels-and-annotations.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ spec:
4141
label1: value1-override
4242
label2: value2
4343
spec:
44-
automountServiceAccountToken: false
4544
containers:
4645
- args:
4746
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/patch-daemonset.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/shutdown-manager.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/volumes.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/with-annotations.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ spec:
3737
gateway.envoyproxy.io/owning-gateway-name: default
3838
gateway.envoyproxy.io/owning-gateway-namespace: default
3939
spec:
40-
automountServiceAccountToken: false
4140
containers:
4241
- args:
4342
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/with-concurrency.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/with-extra-args.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/with-image-pull-secrets.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/with-name.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/with-node-selector.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/daemonsets/with-topology-spread-constraints.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/bootstrap.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/component-level.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/custom.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ spec:
3838
gateway.envoyproxy.io/owning-gateway-name: default
3939
gateway.envoyproxy.io/owning-gateway-namespace: default
4040
spec:
41-
automountServiceAccountToken: false
4241
containers:
4342
- args:
4443
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/custom_with_initcontainers.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ spec:
3838
gateway.envoyproxy.io/owning-gateway-name: default
3939
gateway.envoyproxy.io/owning-gateway-namespace: default
4040
spec:
41-
automountServiceAccountToken: false
4241
containers:
4342
- args:
4443
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/default-env.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ spec:
3737
gateway.envoyproxy.io/owning-gateway-name: default
3838
gateway.envoyproxy.io/owning-gateway-namespace: default
3939
spec:
40-
automountServiceAccountToken: false
4140
containers:
4241
- args:
4342
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/default.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/disable-prometheus.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
gateway.envoyproxy.io/owning-gateway-name: default
3333
gateway.envoyproxy.io/owning-gateway-namespace: default
3434
spec:
35-
automountServiceAccountToken: false
3635
containers:
3736
- args:
3837
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/dual-stack.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/extension-env.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ spec:
3737
gateway.envoyproxy.io/owning-gateway-name: default
3838
gateway.envoyproxy.io/owning-gateway-namespace: default
3939
spec:
40-
automountServiceAccountToken: false
4140
containers:
4241
- args:
4342
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/gateway-namespace-mode.yaml

+12-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: true
4039
containers:
4140
- args:
4241
- --service-cluster default
@@ -248,7 +247,7 @@ spec:
248247
- name: jwt-sa-bearer
249248
generic_secret:
250249
secret:
251-
filename: "/var/run/secrets/kubernetes.io/serviceaccount/token"
250+
filename: "/var/run/secrets/token/sa-token"
252251
overload_manager:
253252
refresh_interval: 0.25s
254253
resource_monitors:
@@ -341,6 +340,9 @@ spec:
341340
readOnly: true
342341
- mountPath: /sds
343342
name: sds
343+
- mountPath: /var/run/secrets/token
344+
name: sa-token
345+
readOnly: true
344346
- args:
345347
- envoy
346348
- shutdown-manager
@@ -419,6 +421,14 @@ spec:
419421
serviceAccountName: envoy-default-37a8eec1
420422
terminationGracePeriodSeconds: 360
421423
volumes:
424+
- name: sa-token
425+
projected:
426+
defaultMode: 420
427+
sources:
428+
- serviceAccountToken:
429+
audience: envoy-gateway.envoy-gateway-system.svc.cluster.local
430+
expirationSeconds: 3600
431+
path: sa-token
422432
- configMap:
423433
defaultMode: 420
424434
items:

internal/infrastructure/kubernetes/proxy/testdata/deployments/ipv6.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/override-labels-and-annotations.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ spec:
4545
label1: value1-override
4646
label2: value2
4747
spec:
48-
automountServiceAccountToken: false
4948
containers:
5049
- args:
5150
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/patch-deployment.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/shutdown-manager.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/volumes.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ spec:
3737
gateway.envoyproxy.io/owning-gateway-name: default
3838
gateway.envoyproxy.io/owning-gateway-namespace: default
3939
spec:
40-
automountServiceAccountToken: false
4140
containers:
4241
- args:
4342
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/with-annotations.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ spec:
4141
gateway.envoyproxy.io/owning-gateway-name: default
4242
gateway.envoyproxy.io/owning-gateway-namespace: default
4343
spec:
44-
automountServiceAccountToken: false
4544
containers:
4645
- args:
4746
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/with-concurrency.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/with-empty-memory-limits.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/with-extra-args.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/with-image-pull-secrets.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/with-name.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/with-node-selector.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/infrastructure/kubernetes/proxy/testdata/deployments/with-topology-spread-constraints.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ spec:
3636
gateway.envoyproxy.io/owning-gateway-name: default
3737
gateway.envoyproxy.io/owning-gateway-namespace: default
3838
spec:
39-
automountServiceAccountToken: false
4039
containers:
4140
- args:
4241
- --service-cluster default

internal/xds/server/kubejwt/jwtinterceptor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type JWTAuthInterceptor struct {
2626
}
2727

2828
// NewJWTAuthInterceptor initializes a new JWTAuthInterceptor.
29-
func NewJWTAuthInterceptor(clientset *kubernetes.Clientset, issuer string, audience string, cache cache.SnapshotCacheWithCallbacks) *JWTAuthInterceptor {
29+
func NewJWTAuthInterceptor(clientset *kubernetes.Clientset, issuer, audience string, cache cache.SnapshotCacheWithCallbacks) *JWTAuthInterceptor {
3030
return &JWTAuthInterceptor{
3131
clientset: clientset,
3232
issuer: issuer,

0 commit comments

Comments
 (0)