Forget argument piece
All checks were successful
Build and deploy Bridgeman Accessible Hashicorp Vault Implementation / deploy (push) Successful in 15s
All checks were successful
Build and deploy Bridgeman Accessible Hashicorp Vault Implementation / deploy (push) Successful in 15s
This commit is contained in:
parent
91c6696644
commit
754b0f8f91
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ class KubernetesSecretsManager:
|
||||||
#self.namespace = os.environ.get('POD_NAMESPACE', 'default')
|
#self.namespace = os.environ.get('POD_NAMESPACE', 'default')
|
||||||
self.namespace = self.get_current_namespace()
|
self.namespace = self.get_current_namespace()
|
||||||
|
|
||||||
def get_current_namespace():
|
def get_current_namespace(self):
|
||||||
try:
|
try:
|
||||||
with open("/var/run/secrets/kubernetes.io/serviceaccount/namespace", "r") as f:
|
with open("/var/run/secrets/kubernetes.io/serviceaccount/namespace", "r") as f:
|
||||||
return f.read().strip()
|
return f.read().strip()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue