-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
CRD's Enums are prefixed with "Raw: " keyword #1565
Labels
Comments
@dsimansk : How are u trying to create CRD? Using old approach usingn Pojos or RAW api? |
rohanKanojia
added a commit
to rohanKanojia/kubernetes-client
that referenced
this issue
Jun 20, 2019
rohanKanojia
added a commit
to rohanKanojia/kubernetes-client
that referenced
this issue
Jun 22, 2019
rohanKanojia
added a commit
to rohanKanojia/kubernetes-client
that referenced
this issue
Jun 22, 2019
rohanKanojia
added a commit
to rohanKanojia/kubernetes-client
that referenced
this issue
Jun 22, 2019
rohanKanojia
added a commit
to rohanKanojia/kubernetes-client
that referenced
this issue
Jun 24, 2019
@rohanKanojia hey there. Sorry for no reply, I was out for 2 weeks. Anyway I'm glad you could reproduce the issue. I've used the old POJOs approach as you probably figured. |
rohanKanojia
added a commit
to rohanKanojia/kubernetes-client
that referenced
this issue
Jul 26, 2019
rohanKanojia
added a commit
to rohanKanojia/kubernetes-client
that referenced
this issue
Aug 5, 2019
rohanKanojia
added a commit
that referenced
this issue
Aug 5, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kubernetes-client version: 4.2.2.
When I try to create CRD with the client via deserializing to object and creating afterwards, the actual resource posted to API contains "Raw: " prefix in some of the enums.
That's not the case when CRD is created with
oc
binary, none of the enums is "enhanced".Lets take Strimzi Kafka CRD:
https://github.com/strimzi/strimzi-kafka-operator/blob/master/install/cluster-operator/040-Crd-kafka.yaml#L75-L80
The example contains both valid and invalid enums.
Trying to create such
Kafka
will fail with validation exception. Same error is also thrown byoc
binary.The text was updated successfully, but these errors were encountered: