Closed Pythoner6 closed 8 months ago
After some experimentation it looks like the authentication
field is what's causing the problem. I'm actually not sure it's even supposed to exist in this definition.
Ok so I've been looking into this and the rook CRD does not have a valid OpenAPI schema, the authentication type should've been array
for it to have items.
Yeah that makes sense. Interesting that this has been around for so long without being noticed. Based on what I've been able to find I have a hunch that field wasn't supposed to get serialized at all in the first place. I'll probably just patch that out on my end for now, and report it upstream then. Thanks!
The authentication
field is meant for internal usage and not be part of the CRD https://github.com/kube-object-storage/lib-bucket-provisioner/blob/d1a8c34382f127670e363ae925ae6087e8b2c7bf/pkg/apis/objectbucket.io/v1alpha1/objectbucket_types.go#L97 notice the json:"-"
, best way is to patch the YAML before importing it to remove that field.
Yep, that's what I've done.
I ran into this error
while trying to run
timoni mod vendor crd -f ...
for the rook crds (https://github.com/rook/rook/blob/master/deploy/charts/rook-ceph/templates/resources.yaml). Specifically it seems to be the ObjectBucket crd causing problems:Unfortunately I'm not super well versed in k8s crd definitions, and the error message is very obtuse (I had to manually check which resource it even was because all it gave me was the version), so I'm really not sure what's going on here.