You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/bettercloud/vault/Vault.java
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,9 @@ public class Vault {
65
65
*/
66
66
publicVault(finalVaultConfigvaultConfig) {
67
67
this.vaultConfig = vaultConfig;
68
+
if (this.vaultConfig.getNameSpace() != null && !this.vaultConfig.getNameSpace().isEmpty()) {
69
+
System.out.println(String.format("The NameSpace %s has been bound to this Vault instance. Please keep this in mind when running operations.", this.vaultConfig.getNameSpace()));
70
+
}
68
71
if (this.vaultConfig.getSecretsEnginePathMap().isEmpty() && this.vaultConfig.getGlobalEngineVersion() == null) {
69
72
System.out.println("Constructing a Vault instance with no provided Engine version, defaulting to version 2.");
70
73
this.vaultConfig.setEngineVersion(2);
@@ -81,6 +84,9 @@ public Vault(final VaultConfig vaultConfig, final Integer engineVersion) {
81
84
}
82
85
vaultConfig.setEngineVersion(engineVersion);
83
86
this.vaultConfig = vaultConfig;
87
+
if (this.vaultConfig.getNameSpace() != null && !this.vaultConfig.getNameSpace().isEmpty()) {
88
+
System.out.println(String.format("The Namespace %s has been bound to this Vault instance. Please keep this in mind when running operations.", this.vaultConfig.getNameSpace()));
89
+
}
84
90
}
85
91
86
92
/**
@@ -97,6 +103,9 @@ public Vault(final VaultConfig vaultConfig, final Integer engineVersion) {
if (this.vaultConfig.getNameSpace() != null && !this.vaultConfig.getNameSpace().isEmpty()) {
107
+
System.out.println(String.format("The Namespace %s has been bound to this Vault instance. Please keep this in mind when running operations.", this.vaultConfig.getNameSpace()));
0 commit comments