File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ def apply_kubernetes_state(env):
84
84
85
85
# last, apply the application manifests & configurations
86
86
for ns in [ns for ns in os .listdir (k8s ) if isdir (k8s + '/' + ns ) and ns != 'system' and ns != 'security' ]:
87
- if not subprocess .check_output ("kubectl get namespace %s --ignore-not-found=true" % ns , shell = True ):
88
- sys .stderr .write ("Creating namespace '%s'...\n " % ns )
89
- subprocess .check_call ("kubectl create namespace %s" % ns , shell = True )
90
- apply_directory (env , k8s + '/' + ns , ns )
87
+ if not ns .endswith ('.disabled' ):
88
+ if not subprocess .check_output ("kubectl get namespace %s --ignore-not-found=true" % ns , shell = True ):
89
+ sys .stderr .write ("Creating namespace '%s'...\n " % ns )
90
+ subprocess .check_call ("kubectl create namespace %s" % ns , shell = True )
91
+ apply_directory (env , k8s + '/' + ns , ns )
You can’t perform that action at this time.
0 commit comments