-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unknown apiVersionKind secrets-store.csi.x-k8s.io/v1/SecretProviderClass is it registered? - K8S java client #2655
Comments
I don't think that this is the issue that you referenced. This library only has the built-in resources by default. That resource is a custom resource (CRD) that is dynamically loaded into the cluster. You need to either register your own implementation of that resource using the There are also instructions here: If you want to generate the client models from an OpenAPI specification. |
The SecretProviderClass is registered with the cluster, and we still see the above error and we see that it works fine with kubectl |
When As I mentioned above, you need to either generate/write the strongly-typed objects yourself (and register them with the ModelMapper) or you can use the |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Describe the bug
Unknown apiVersionKind secrets-store.csi.x-k8s.io/v1/SecretProviderClass is it registered?
Error Stack
Failed to load resources:
java.io.IOException: Unknown apiVersionKind secrets-store.csi.x-k8s.io/v1/SecretProviderClass is it registered?
at io.kubernetes.client.util.Yaml.modelMapper(Yaml.java:554)
at io.kubernetes.client.util.Yaml.loadAll(Yaml.java:179)
at io.kubernetes.client.util.Yaml.loadAll(Yaml.java:145)
Client Version
e.g.
17.0.2 and 18.0.0
Kubernetes Version
e.g.
1.23.4
Java Version
e.g. Java 8
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should be able to create the resource - secrets-store.csi.x-k8s.io
This resource can be created with kubectl and helm manually but not with Java K8S client. We see that the fix is already in the master branch. This is the pull request which was merged but there was no java client release post this.
#2620
Could we create a new release from the master branch or have an ETA for the next release ?
The text was updated successfully, but these errors were encountered: