Skip to content

Commit

Permalink
Ignore not found in delete step
Browse files Browse the repository at this point in the history
Signed-off-by: Hasan Turken <[email protected]>
  • Loading branch information
turkenh committed Oct 24, 2022
1 parent 4cf0389 commit 9835c9d
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 9835c9d

Please sign in to comment.