Skip to content

Commit eaf627c

Browse files
authored
[Bugfix] Fix Exporter in Deployments without authentication (#856)
1 parent 3246d2d commit eaf627c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Allow to abort ArangoBackup uploads by removing spec.upload
66
- Add Agency Cache internally
77
- Add Recovery during PlanBuild operation
8+
- Fix Exporter in Deployments without authentication
89

910
## [1.2.5](https://github.com/arangodb/kube-arangodb/tree/1.2.5) (2021-10-25)
1011
- Split & Unify Lifecycle management functionality

pkg/deployment/resources/exporter.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ func createInternalExporterArgs(spec api.DeploymentSpec, groupSpec api.ServerGro
6565
tokenpath := filepath.Join(k8sutil.ExporterJWTVolumeMountDir, constants.SecretKeyToken)
6666
options := k8sutil.CreateOptionPairs(64)
6767

68-
options.Add("--arangodb.jwt-file", tokenpath)
68+
if spec.Authentication.IsAuthenticated() {
69+
options.Add("--arangodb.jwt-file", tokenpath)
70+
}
6971

7072
path := k8sutil.ArangoExporterInternalEndpoint
7173
if version.CompareTo("3.8.0") >= 0 {

0 commit comments

Comments
 (0)