Template repository is broken and instructions are referencing v2 (original) (raw)
What happened?
First of all, apologies if this is a wrong repository to open this issue is.
I am trying to create a new crossplane provider by following the official documentation from this repository. As I see it there are at least 2 issues which would prevent anyone from achieving a working product.
- in documentation it states the following:
cat < config/repository/config.go package repository
import "github.com/crossplane/upjet/v2/pkg/config"
// Configure configures individual resources by adding custom ResourceConfigurators. func Configure(p *config.Provider) { p.AddResourceConfigurator("github_repository", func(r *config.Resource) { // We need to override the default group that upjet generated for // this resource, which would be "github" r.ShortGroup = "repository" }) } EOF
But the template repository is still stuck on v1, thus this will create compiling issue.
2) Even is someone removes v2 from the issue number 1, it will still choke with
go: github.com/alekc/provider-minio/cmd/provider imports
github.com/crossplane/crossplane-runtime/pkg/ratelimiter imports
sigs.k8s.io/controller-runtime/pkg/ratelimiter: module sigs.k8s.io/controller-runtime@latest found (v0.21.0), but does not contain package sigs.k8s.io/controller-runtime/pkg/ratelimiter
It looks like it has been resolved in v2, but again, template is stuck behind.
Edit nvm regarding the second point, it looks like while importing v2 some of the imports got messed up
How can we reproduce it?
Follow the documentation on https://github.com/crossplane/upjet/blob/main/docs/generating-a-provider.md