Skip to content

Commit

Permalink
🐛 Fix the webhook creation for defaulting webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
prafull01 committed Oct 9, 2020
1 parent 70e9989 commit 33e7cbc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ package {{ .Resource.Version }}
import (
ctrl "sigs.k8s.io/controller-runtime"
logf "sigs.k8s.io/controller-runtime/pkg/log"
{{- if or .Validating .Defaulting }}
{{- if .Validating }}
"k8s.io/apimachinery/pkg/runtime"
{{- end }}
{{- if or .Validating .Defaulting }}
"sigs.k8s.io/controller-runtime/pkg/webhook"
{{- end }}
)
Expand Down

0 comments on commit 33e7cbc

Please sign in to comment.