crossplane-contrib / provider-jet-rancher

Apache License 2.0
3 stars 4 forks source link

Unable to create catalog item from following instructions #2

Open punasusi opened 2 years ago

punasusi commented 2 years ago

What happened?

Installed crossplane, and then rancher providers, following the /examples yaml, adding the api_url tried to deploy the catalog object, and got an error: Warning CannotObserveExternalResource catalog/hello-crossplane cannot run refresh: refresh failed: [ERROR] Id nor scope can't be nil: : File name: main.tf.json

How can we reproduce it?

clean install in local kubernetes, follow the /examples yaml files

What environment did it happen in?

Crossplane version:

Chart Name: crossplane Chart Description: Crossplane is an open source Kubernetes add-on that enables platform teams to assemble infrastructure from multiple vendors, and expose higher level self-service APIs for application teams to consume. Chart Version: 1.6.3 Chart Application Version: 1.6.3

Provider version: crossplane/provider-jet-rancher:v0.1.0

ApolloDS commented 2 years ago

I can confirm this bug. Creating a catalog item doesn't work.

sboschman commented 1 year ago

The scope attribute has a default value in terraform-provider-rancher2 (see docs), crossplane/terrajet has no support for default values atm, so you have to set it explicitly:

spec:
  forProvider:
    url: https://www.k8gb.io
    scope: global