Skip to content

Commit

Permalink
fixing lintint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gvicentin committed Aug 13, 2024
1 parent e217a37 commit 304af4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ linters:
- goimports
- gofmt
- misspell
- maligned
disable:
- errcheck
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ test:
.PHONY: lint
lint:
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin
go install ./...
go test -i ./...
$$(go env GOPATH)/bin/golangci-lint run -c ./.golangci.yml ./...

.PHONY: minikube
Expand Down
6 changes: 3 additions & 3 deletions kubernetes/ingress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ func TestEnsureWithTLSAndCName(t *testing.T) {
"cert-manager.io/cluster-issuer": "letsencrypt-prod",
},
},
Team: "test-team",
Team: "test-team",
CNames: []string{"test.io"},
Prefixes: []router.BackendPrefix{
{
Expand All @@ -1287,7 +1287,7 @@ func TestEnsureWithTLSAndCName(t *testing.T) {
foundIngress, err := svc.Client.NetworkingV1().Ingresses(svc.Namespace).Get(ctx, "kubernetes-router-test-ingress", metav1.GetOptions{})
require.NoError(t, err)

expectedIngress := defaultIngress("test", "test-team","default")
expectedIngress := defaultIngress("test", "test-team", "default")
expectedIngress.Annotations["router.tsuru.io/cnames"] = "test.io"
expectedIngress.Annotations["kubernetes.io/tls-acme"] = "true"
expectedIngress.Annotations["cert-manager.io/cluster-issuer"] = "letsencrypt-prod"
Expand Down Expand Up @@ -1317,7 +1317,7 @@ func TestEnsureWithTLSAndCNameAndAcmeCName(t *testing.T) {
Acme: true,
AcmeCName: true,
},
Team: "test-team",
Team: "test-team",
CNames: []string{"test.io"},
Prefixes: []router.BackendPrefix{
{
Expand Down

0 comments on commit 304af4e

Please sign in to comment.