ignore-not-found for kubectl delete

pull/12779/head
Sharif Elgamal 2021-10-25 18:07:45 -07:00
parent bd9da42651
commit b0598d06e5
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ func kubectlCommand(cc *config.ClusterConfig, files []string, enable bool) *exec
args = append(args, []string{"-f", f}...)
}
} else {
args = append(args, "--ignore-not-found")
for i := len(files) - 1; i >= 0; i-- {
args = append(args, []string{"-f", files[i]}...)
}