Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ linters:
- misspell
- whitespace

issues:
exclude-rules:
- path: _test\.go # disable some linters on test files
linters:
- dupl

run:
issues-exit-code: 1
concurrency: 4
Expand Down
5 changes: 3 additions & 2 deletions integration/scenarios/export_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/aws/aws-cloud-map-mcs-controller-for-k8s/pkg/controllers"
"github.com/aws/aws-cloud-map-mcs-controller-for-k8s/pkg/model"
"github.com/aws/aws-sdk-go-v2/aws"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/wait"
)

Expand Down Expand Up @@ -46,15 +47,15 @@ func NewExportServiceScenario(cfg *aws.Config, nsName string, svcName string, po
for _, ip := range strings.Split(ips, ",") {
endpointPort := model.Port{
Port: int32(port),
Protocol: model.TCPProtocol,
Protocol: string(v1.ProtocolTCP),
}
endpts = append(endpts, &model.Endpoint{
Id: model.EndpointIdFromIPAddressAndPort(ip, endpointPort),
IP: ip,
ServicePort: model.Port{
Port: int32(servicePort),
TargetPort: portStr,
Protocol: model.TCPProtocol,
Protocol: string(v1.ProtocolTCP),
},
EndpointPort: endpointPort,
Attributes: make(map[string]string),
Expand Down
Loading