Skip to content

Commit

Permalink
Merge pull request #186 from scalecube/update-config
Browse files Browse the repository at this point in the history
Added support of VAULT_MOUNT_POINT at KubernetesVaultTokenSupplier
  • Loading branch information
artem-v authored Oct 23, 2020
2 parents 557719e + ba42647 commit ccccc8b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public class KubernetesVaultTokenSupplier implements VaultTokenSupplier {
private String vaultRole = ENVIRONMENT_LOADER.loadVariable("VAULT_ROLE");

private String vaultJwtProvider =
Optional.ofNullable(ENVIRONMENT_LOADER.loadVariable("VAULT_JWT_PROVIDER"))
Optional.ofNullable(
Optional.ofNullable(ENVIRONMENT_LOADER.loadVariable("VAULT_JWT_PROVIDER"))
.orElse(ENVIRONMENT_LOADER.loadVariable("VAULT_MOUNT_POINT")))
.orElse("kubernetes");

private String serviceAccountTokenPath =
Expand Down

0 comments on commit ccccc8b

Please sign in to comment.