Skip to content

Commit af55357

Browse files
author
Arik Kfir
committed
namespaces always created as "app", instead of their actual [directory] name
1 parent 41c740c commit af55357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/k8s.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ def apply_kubernetes_state(env):
8585
# last, apply the application manifests & configurations
8686
for ns in [ns for ns in os.listdir(k8s) if isdir(k8s + '/' + ns) and ns != 'system' and ns != 'security']:
8787
if not subprocess.check_output("kubectl get namespace %s --ignore-not-found=true" % ns, shell=True):
88-
sys.stderr.write("Creating namespace 'app'...\n")
89-
subprocess.check_call("kubectl create namespace app", shell=True)
88+
sys.stderr.write("Creating namespace '%s'...\n" % ns)
89+
subprocess.check_call("kubectl create namespace %s" % ns, shell=True)
9090
apply_directory(env, k8s + '/' + ns, ns)

0 commit comments

Comments
 (0)