mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Bugfix] Fix authentication details extraction for agency dump & state (#1062)
This commit is contained in:
parent
330f3de5b0
commit
4e5015a2e5
2 changed files with 7 additions and 4 deletions
|
@ -9,6 +9,7 @@
|
||||||
- (Feature) Recreation member in the high plan
|
- (Feature) Recreation member in the high plan
|
||||||
- (Feature) Add 'crd install' subcommand
|
- (Feature) Add 'crd install' subcommand
|
||||||
- (Bugfix) Fix `internal` metrics mode
|
- (Bugfix) Fix `internal` metrics mode
|
||||||
|
- (Bugfix) Create agency dump if auth is disabled
|
||||||
|
|
||||||
## [1.2.14](https://github.com/arangodb/kube-arangodb/tree/1.2.14) (2022-07-14)
|
## [1.2.14](https://github.com/arangodb/kube-arangodb/tree/1.2.14) (2022-07-14)
|
||||||
- (Feature) Add ArangoSync TLS based rotation
|
- (Feature) Add ArangoSync TLS based rotation
|
||||||
|
|
10
cmd/admin.go
10
cmd/admin.go
|
@ -211,10 +211,12 @@ func getDeploymentAndCredentials(ctx context.Context,
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
auth, err = getJWTTokenFromSecrets(ctx, secrets, d.Spec.Authentication.GetJWTSecretName())
|
if d.Spec.IsAuthenticated() {
|
||||||
if err != nil {
|
auth, err = getJWTTokenFromSecrets(ctx, secrets, d.Spec.Authentication.GetJWTSecretName())
|
||||||
err = errors.WithMessage(err, "failed to get JWT token")
|
if err != nil {
|
||||||
return
|
err = errors.WithMessage(err, "failed to get JWT token")
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue