%(-n "#{namespace}" get ingress,svc,pdb,hpa,deploy,statefulset,job,pod,secret,configmap,pvc,secret,clusterrole,clusterrolebinding,role,rolebinding,sa 2>&1),
'|',
%(grep "#{release_name}"),
'|',
"awk '{print $1}'",
'|',
%(xargs kubectl -n "#{namespace}" delete),
'||',
'true'
])
.and_return(Gitlab::Popen::Result.new([],''))
it'calls kubectl with the correct arguments'do
# popen_with_detail will receive an array with a bunch of arguments; we're
# only concerned with it having the correct namespace and release name