Skip to content

Commit 49fc667

Browse files
committed
go lint
Signed-off-by: Karol Szwaj <[email protected]>
1 parent 903a6d9 commit 49fc667

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

go.mod

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ require (
3030
github.com/go-openapi/spec v0.21.0
3131
github.com/go-openapi/strfmt v0.23.0
3232
github.com/go-openapi/validate v0.24.0
33-
github.com/golang-jwt/jwt/v4 v4.5.0
3433
github.com/golang/protobuf v1.5.4
3534
github.com/google/cel-go v0.22.1
3635
github.com/google/go-cmp v0.7.0

internal/infrastructure/kubernetes/proxy/resource.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func enablePrometheus(infra *ir.ProxyInfra) bool {
8282
func expectedProxyContainers(infra *ir.ProxyInfra,
8383
containerSpec *egv1a1.KubernetesContainerSpec,
8484
shutdownConfig *egv1a1.ShutdownConfig, shutdownManager *egv1a1.ShutdownManager,
85-
egNamespace string, dnsDomain string, gatewayNamespaceMode bool,
85+
egNamespace, dnsDomain string, gatewayNamespaceMode bool,
8686
) ([]corev1.Container, error) {
8787
ports := make([]corev1.ContainerPort, 0, 2)
8888
if enablePrometheus(infra) {

internal/xds/server/kubejwt/tokenreview.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"context"
1010
"fmt"
1111

12-
v1 "k8s.io/api/authentication/v1"
12+
authenticationv1 "k8s.io/api/authentication/v1"
1313
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1414
"k8s.io/client-go/kubernetes"
1515
"k8s.io/client-go/rest"
@@ -31,8 +31,8 @@ func GetKubernetesClient() (*kubernetes.Clientset, error) {
3131
}
3232

3333
func validateKubeJWT(ctx context.Context, clientset *kubernetes.Clientset, token string) (bool, error) {
34-
tokenReview := &v1.TokenReview{
35-
Spec: v1.TokenReviewSpec{
34+
tokenReview := &authenticationv1.TokenReview{
35+
Spec: authenticationv1.TokenReviewSpec{
3636
Token: token,
3737
},
3838
}

0 commit comments

Comments
 (0)