Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin committed Sep 9, 2024
2 parents b427a1d + 84a1c69 commit 0403e84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/kubectl-testkube/commands/testworkflows/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ func NewCreateTestWorkflowCmd() *cobra.Command {
workflow, err := client.GetTestWorkflow(obj.Name)
if err != nil {
if update {
ui.ExitOnError("getting test workflow "+obj.Name+" in namespace "+obj.Namespace, err)
// allow to `create --update` if test workflow does not exist
ui.WarnOnError("getting test workflow "+obj.Name+" in namespace "+obj.Namespace, err)
} else {
ui.Debug("getting test workflow "+obj.Name+" in namespace "+obj.Namespace, err.Error())
}
Expand Down

0 comments on commit 0403e84

Please sign in to comment.