@@ -29,9 +29,9 @@ import (
2929 "path"
3030
3131 "github.com/arangodb/go-driver/jwt"
32+ "github.com/arangodb/kube-arangodb/pkg/apis/shared"
3233 "github.com/arangodb/kube-arangodb/pkg/deployment/pod"
3334 "github.com/arangodb/kube-arangodb/pkg/util/constants"
34- "github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
3535 "github.com/pkg/errors"
3636 "github.com/rs/zerolog/log"
3737 "github.com/spf13/cobra"
@@ -57,7 +57,7 @@ func init() {
5757 f .BoolVarP (& probeInput .SSL , "ssl" , "" , false , "Determines if SSL is enabled" )
5858 f .BoolVarP (& probeInput .Auth , "auth" , "" , false , "Determines if authentication is enabled" )
5959 f .StringVarP (& probeInput .Endpoint , "endpoint" , "" , "/_api/version" , "Endpoint (path) to call for lifecycle probe" )
60- f .StringVarP (& probeInput .JWTPath , "jwt" , "" , k8sutil .ClusterJWTSecretVolumeMountDir , "Path to the JWT tokens" )
60+ f .StringVarP (& probeInput .JWTPath , "jwt" , "" , shared .ClusterJWTSecretVolumeMountDir , "Path to the JWT tokens" )
6161}
6262
6363func probeClient () * http.Client {
@@ -80,7 +80,7 @@ func probeEndpoint(endpoint string) string {
8080 proto = "https"
8181 }
8282
83- return fmt .Sprintf ("%s://%s:%d%s" , proto , "127.0.0.1" , k8sutil .ArangoPort , endpoint )
83+ return fmt .Sprintf ("%s://%s:%d%s" , proto , "127.0.0.1" , shared .ArangoPort , endpoint )
8484}
8585
8686func readJWTFile (file string ) ([]byte , error ) {
0 commit comments