crossplane / provider-template

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

fix generated import types in controller, by using full repo #79

Closed dukanto closed 11 months ago

dukanto commented 1 year ago

Description of your changes

Pass down full repo name to controller template, so imports are correctly generated.

Fixes #66

I have:

How has this code been tested

By running provider.addtype target with a repo that is not github.com/crossplane/* i.e. github.com/myorg/* Once run, go to generated controller and check that imports have the correct format.

    "github.com/myorg/provider-test/apis/GROUP/v1alpha1"
    apisv1alpha1 "github.com/myorg/provider-test/apis/v1alpha1"