Skip to content

Commit cc06bf2

Browse files
author
lamai93
committed
Fixed scheme in exporter args.
1 parent bee1c2e commit cc06bf2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/deployment/resources/pod_creator.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,13 @@ func createArangoSyncArgs(apiObject metav1.Object, spec api.DeploymentSpec, grou
332332
func createExporterArgs(isSecure bool) []string {
333333
tokenpath := filepath.Join(k8sutil.ExporterJWTVolumeMountDir, constants.SecretKeyToken)
334334
options := make([]optionPair, 0, 64)
335+
scheme := "http"
336+
if isSecure {
337+
scheme = "https"
338+
}
335339
options = append(options,
336340
optionPair{"--arangodb.jwt-file", tokenpath},
337-
optionPair{"--arangodb.endpoint", "http://localhost:" + strconv.Itoa(k8sutil.ArangoPort)},
341+
optionPair{"--arangodb.endpoint", scheme + "://localhost:" + strconv.Itoa(k8sutil.ArangoPort)},
338342
)
339343
keyPath := filepath.Join(k8sutil.TLSKeyfileVolumeMountDir, constants.SecretTLSKeyfile)
340344
if isSecure {

0 commit comments

Comments
 (0)