Skip to content

Commit

Permalink
fix(server): Disable CN check (Go 15 does not support). Fixes argopro…
Browse files Browse the repository at this point in the history
…j#5539 (argoproj#5550)

Signed-off-by: Alex Collins <[email protected]>
  • Loading branch information
alexec committed Mar 30, 2021
1 parent 872897f commit 20f0047
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions server/apiserver/argoserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/soheilhy/cmux"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/rest"

Expand Down Expand Up @@ -272,13 +271,8 @@ func (as *argoServer) newHTTPServer(ctx context.Context, port int, artifactServe
}
dialOpts := []grpc.DialOption{
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(MaxGRPCMessageSize)),
grpc.WithInsecure(),
}
if as.tlsConfig != nil {
dialOpts = append(dialOpts, grpc.WithTransportCredentials(credentials.NewTLS(as.tlsConfig)))
} else {
dialOpts = append(dialOpts, grpc.WithInsecure())
}

webhookInterceptor := webhook.Interceptor(as.clients.Kubernetes)

// HTTP 1.1+JSON Server
Expand Down

0 comments on commit 20f0047

Please sign in to comment.