crossplane / provider-template

A template for building @crossplane providers.
https://crossplane.io
Apache License 2.0
126 stars 72 forks source link

AddType helper apis references default to "github.com/crossplane/provider-NAME" #66

Closed dukanto closed 11 months ago

dukanto commented 1 year ago

What happened?

When using provider.addtype target, all APIs that references to the newly created type in the new controller references to github.com/crossplane/provider-[NAME].

When developing a provider that's not hosted under crossplane org, you then have to go to that controller and modify that reference to the correct package.

How can we reproduce it?

I think a few modifications in /hack/controller/KIND_LOWER/KIND_LOWER.go.tmpl (and makefile to pass another variable) will be enough to pass down the correct info and avoid the extra step of changing imports every time.

I'm happy to create a PR on a solution proposal to be reviewed :)