in src/com/epam/edp/platform/Kubernetes.groovy [112:124]
def checkObjectExists(objectType, objectName, project = null) {
def command = "kubectl get ${objectType} ${objectName} --ignore-not-found=true"
if (project)
command = "${command} -n ${project}"
def res = script.sh(
script: command,
returnStdout: true
).trim()
if (res == "")
return false
return true
}