Skip to content

Commit 019879d

Browse files
fix
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
1 parent 58b63ea commit 019879d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • images/hooks/cmd/discovery-clusterip-service-for-dvcr

images/hooks/cmd/discovery-clusterip-service-for-dvcr/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package main
1919
import (
2020
"context"
2121
"fmt"
22+
"strings"
2223

2324
"github.com/deckhouse/module-sdk/pkg"
2425
"github.com/deckhouse/module-sdk/pkg/app"
@@ -83,7 +84,7 @@ func handleDiscoveryService(_ context.Context, input *pkg.HookInput) error {
8384
func getClusterIP(input *pkg.HookInput) string {
8485
snapshots := input.Snapshots.Get(discoveryService)
8586
if len(snapshots) > 0 {
86-
return snapshots[0].String()
87+
return strings.Trim(snapshots[0].String(), `"`)
8788
}
8889
return ""
8990
}

0 commit comments

Comments
 (0)