Skip to content

Commit

Permalink
Delete command should ignore resources that cannot be found (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
roi-codefresh authored Feb 23, 2022
1 parent 88db5a4 commit c2702af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kube/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func AddFlags(flags *pflag.FlagSet) Factory {
Timeout: &timeout,
KubeConfig: &kubeConfig,
Namespace: &namespace,
Context: &context,
Context: &context,
}
confFlags.AddFlags(flags)
mvFlags := cmdutil.NewMatchVersionFlags(confFlags)
Expand Down Expand Up @@ -257,7 +257,7 @@ func (f *factory) Delete(ctx context.Context, opts *DeleteOptions) error {

cmdutil.AddDryRunFlag(cmd)

cmd.SetArgs([]string{})
cmd.SetArgs([]string{"--ignore-not-found"})

return cmd.ExecuteContext(ctx)
}
Expand Down

0 comments on commit c2702af

Please sign in to comment.