Skip to content
Snippets Groups Projects
Commit a0091196 authored by OZGCloud's avatar OZGCloud
Browse files

ozg-2541 delete namespace

parent 20b1b05c
No related branches found
No related tags found
No related merge requests found
......@@ -329,7 +329,7 @@ Void checkIfNamespaceExists(String namespace) {
def namespaceList = sh (script: 'kubectl get namespaces', returnStdout: true)
if(namespaceList.contains(namespace)) {
error("Namespace: ${namespace} existiert bereits")
sh "kubectl delete namespace ${namespace}"
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment