You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the CRD yaml contains x-kubernetes-int-or-string, then Yaml fails to load the manifest as V1CustomResourceDefinition object. Replacing x-kubernetes-int-or-string with xKubernetesIntOrString will make Yaml be able to load it successfully. Besides, with Yaml.dump on V1CustomResourceDefinition object, the returned yaml string gets xKubernetesIntOrString instead. If one uses the string as the patch request body, the api server will reject it as the spec is invalid.
** Client Version ** 11.0.0 (issue persisted in 11.0.2 and 13.0.0)
Describe the bug
If the CRD yaml contains
x-kubernetes-int-or-string
, thenYaml
fails to load the manifest as V1CustomResourceDefinition object. Replacingx-kubernetes-int-or-string
withxKubernetesIntOrString
will make Yaml be able to load it successfully. Besides, withYaml.dump
on V1CustomResourceDefinition object, the returned yaml string getsxKubernetesIntOrString
instead. If one uses the string as the patch request body, the api server will reject it as the spec is invalid.** Client Version **
11.0.0
(issue persisted in 11.0.2 and 13.0.0)** Kubernetes Version **
1.18.16
** Java Version **
Java 8
To Reproduce
Steps to reproduce the behavior:
felixconfigurations.crd.projectcalico.org
crd manifest obtained from https://docs.projectcalico.org/archive/v3.19/manifests/tigera-operator.yaml as a string.Yaml.loadAll("the crd manifest string")
orYaml.loadAs("the crd manifest string", V1CustomResourceDefinition.class)
to load it.Expected behavior
V1CustomResourceDefinition
back to string.KubeConfig
N/A
Server (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: