Skip to content

Commit

Permalink
Merge pull request #34 from turkenh/ignore-not-found-with-delete
Browse files Browse the repository at this point in the history
Ignore not found in delete step
  • Loading branch information
turkenh authored Oct 24, 2022
2 parents 4cf0389 + 9835c9d commit 8c4e0b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/templates/01-delete.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: TestStep
commands:
{{- range $resource := .Resources }}
{{- if $resource.Namespace }}
- command: ${KUBECTL} delete {{ $resource.KindGroup }}/{{ $resource.Name }} --wait=false --namespace {{ $resource.Namespace }}
- command: ${KUBECTL} delete {{ $resource.KindGroup }}/{{ $resource.Name }} --wait=false --namespace {{ $resource.Namespace }} --ignore-not-found
{{- else }}
- command: ${KUBECTL} delete {{ $resource.KindGroup }}/{{ $resource.Name }} --wait=false
- command: ${KUBECTL} delete {{ $resource.KindGroup }}/{{ $resource.Name }} --wait=false --ignore-not-found
{{- end }}
{{- end }}

0 comments on commit 8c4e0b0

Please sign in to comment.