Skip to content

Commit

Permalink
Fix the return type so it uses Upjet
Browse files Browse the repository at this point in the history
The return type of GetProvider() uses Terrajet's *tjconfig.Provider.
Update it to use the Upjet type - *ujconfig.Provider.

Signed-off-by: Jakub Ciolek <jakub@ciolek.dev>
  • Loading branch information
jake-ciolek committed Jan 17, 2024
1 parent 8fd8905 commit 3f04f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/generating-a-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ variables in the `Makefile`:
+ "github.com/myorg/provider-github/config/repository"
)

func GetProvider() *tjconfig.Provider {
func GetProvider() *ujconfig.Provider {
...
for _, configure := range []func(provider *tjconfig.Provider){
for _, configure := range []func(provider *ujconfig.Provider){
// add custom config functions
- null.Configure,
+ repository.Configure,
Expand Down

0 comments on commit 3f04f0a

Please sign in to comment.