Skip to content

Commit

Permalink
+++
Browse files Browse the repository at this point in the history
  • Loading branch information
yalosev committed Sep 18, 2024
1 parent cdc1d9e commit 9a80c52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/shell-operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ func (op *ShellOperator) conversionEventHandler(crdName string, review *v1.Conve
convTask = newTask
})

if convTask == nil {
return nil, fmt.Errorf("no hook found for '%s' event for crd/%s", string(KubernetesConversion), crdName)
}

fmt.Println("TASK", convTask)
res := op.taskHandler(convTask)

Expand Down

0 comments on commit 9a80c52

Please sign in to comment.