Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crossplane beta validate fails to see schema for kind=Robot #21

Closed
kaessert opened this issue Nov 14, 2024 · 1 comment
Closed

crossplane beta validate fails to see schema for kind=Robot #21

kaessert opened this issue Nov 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kaessert
Copy link

What happened?

I'm running beta validate on

apiVersion: iam.upbound.io/v1alpha1
kind: Robot
metadata:
  name: foobar
---

apiVersion: iam.upbound.io/v1alpha1
kind: Token
metadata:
  name: up-sd666-eks-test-euw2-shd-robot
spec:
  forProvider:
    name: foo
    owner:
      id: bar
      type: users

with xp beta validate apis/crossplane.yaml robot.yaml

My crossplane.yaml contains [xpkg.upbound.io/upbound/provider-upbound:v0.8.0](http://xpkg.upbound.io/upbound/provider-upbound:v0.8.0)

It downloaded the schema but is unable to find kind: Robot

$> xp beta validate apis/crossplane.yaml robot.yaml
[!] could not find CRD/XRD for: iam.upbound.io/v1alpha1, Kind=Robot
[✓] iam.upbound.io/v1alpha1, Kind=Token, up-sd666-eks-test-euw2-shd-robot validated successfully
Total 2 resources: 1 missing schemas, 1 success cases, 0 failure cases

As schemas for other resources work just fine, my guess is it's a problem with the upbound-provider.

How can we reproduce it?

Run steps described earlier

What environment did it happen in?

Provider Upbound version: [v0.8.0](http://xpkg.upbound.io/upbound/provider-upbound:v0.8.0)

@kaessert kaessert added the bug Something isn't working label Nov 14, 2024
@haarchri
Copy link
Member

haarchri commented Jan 7, 2025

with the latest version of the crossplane cli its working - its related to: crossplane/crossplane#6097

[x] schema validation error iam.upbound.io/v1alpha1, Kind=Robot, foobar : spec: Required value
Total 1 resources: 0 missing schemas, 0 success cases, 1 failure cases

@haarchri haarchri closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants