Skip to content

Commit

Permalink
Fix go vet - webhook package name (#475)
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Ilario <filario@redhat.com>
  • Loading branch information
filariow authored Sep 28, 2023
1 parent 6360b7f commit 00d55d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion make/go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ vendor:
generate-assets: go-bindata
@echo "generating webhooks template data..."
@rm ./pkg/webhook/deploy/webhooks/template_assets.go 2>/dev/null || true
@$(GO_BINDATA) -pkg templates -o ./pkg/webhook/deploy/webhooks/template_assets.go -nocompress -prefix deploy/webhook deploy/webhook
@$(GO_BINDATA) -pkg webhooks -o ./pkg/webhook/deploy/webhooks/template_assets.go -nocompress -prefix deploy/webhook deploy/webhook
@echo "generating autoscaler buffer template data..."
@rm ./pkg/autoscaler/template_assets.go 2>/dev/null || true
@$(GO_BINDATA) -pkg autoscaler -o ./pkg/autoscaler/template_assets.go -nocompress -prefix deploy/autoscaler deploy/autoscaler
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/deploy/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func Webhook(cl runtimeclient.Client, s *runtime.Scheme, namespace, image string
}

func getTemplateObjects(s *runtime.Scheme, namespace, image string, caBundle []byte) ([]runtimeclient.Object, error) {
deployment, err := templates.Asset("member-operator-webhook.yaml")
deployment, err := webhooks.Asset("member-operator-webhook.yaml")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 00d55d9

Please sign in to comment.