We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58b63ea commit 019879dCopy full SHA for 019879d
1 file changed
images/hooks/cmd/discovery-clusterip-service-for-dvcr/main.go
@@ -19,6 +19,7 @@ package main
19
import (
20
"context"
21
"fmt"
22
+ "strings"
23
24
"github.com/deckhouse/module-sdk/pkg"
25
"github.com/deckhouse/module-sdk/pkg/app"
@@ -83,7 +84,7 @@ func handleDiscoveryService(_ context.Context, input *pkg.HookInput) error {
83
84
func getClusterIP(input *pkg.HookInput) string {
85
snapshots := input.Snapshots.Get(discoveryService)
86
if len(snapshots) > 0 {
- return snapshots[0].String()
87
+ return strings.Trim(snapshots[0].String(), `"`)
88
}
89
return ""
90
0 commit comments