Skip to content

Commit 9de4870

Browse files
committed
fixes lint
1 parent b2cf7fd commit 9de4870

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

internal/controllers/database/controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ var _ = Describe("Database controller medium tests", func() {
396396

397397
By("Check that args `--grpc-public-host` and `--grpc-public-port` was updated in StatefulSet...")
398398
Eventually(
399-
checkPublicArgs(fmt.Sprintf("%s.%s", "$(POD_NAME)", externalHost), fmt.Sprintf("%d", externalPort)),
399+
checkPublicArgs("$(NODE_NAME)", fmt.Sprintf("%d", externalPort)),
400400
test.Timeout,
401401
test.Interval).ShouldNot(HaveOccurred())
402402
})

internal/resources/database_statefulset.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,11 +682,11 @@ func (b *DatabaseStatefulSetBuilder) buildContainerArgs() ([]string, []string) {
682682
publicPortOption := "--grpc-public-port"
683683
publicPort := fmt.Sprintf("%d", api.GRPCPort)
684684
if b.Spec.Service.GRPC.ExternalPort > 0 {
685-
publicHost = "$(NODE_NAME)"
685+
publicHost = "$(NODE_NAME)" //nolint:goconst
686686
publicPort = fmt.Sprintf("%d", b.Spec.Service.GRPC.ExternalPort)
687687
}
688688
if value, ok := b.ObjectMeta.Annotations[api.AnnotationGRPCPublicPort]; ok {
689-
publicHost = "$(NODE_NAME)"
689+
publicHost = "$(NODE_NAME)" //nolint:goconst
690690
publicPort = value
691691
}
692692

tests/cfg/kind-cluster-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ nodes:
66
- role: worker
77
extraPortMappings:
88
- containerPort: 30001
9-
hostPort: 2135
9+
hostPort: 30001
1010
listenAddress: "127.0.0.1"
1111
protocol: tcp
1212
labels:

tests/test-utils/test-utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func ExecuteSimpleTableE2ETestWithSDK(databasePath string) {
280280
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
281281
defer cancel()
282282

283-
cc, err := ydb.Open(ctx, fmt.Sprintf("grpc://localhost:2135/%s", databasePath))
283+
cc, err := ydb.Open(ctx, fmt.Sprintf("grpc://localhost:30001/%s", databasePath))
284284
Expect(err).ShouldNot(HaveOccurred())
285285
defer func() { _ = cc.Close(ctx) }()
286286

0 commit comments

Comments
 (0)