intellij-kubernetes icon indicating copy to clipboard operation
intellij-kubernetes copied to clipboard

Support schemas for custom resources if CRD contains a schema

Open adietish opened this issue 4 years ago • 0 comments

depends on #175

CRDs can now contain schemas via the openAPIV3Schema tag. We should support those.

"versions": [
            {
                "additionalPrinterColumns": [
                    {
                        "description": "The Kamelet Binding phase",
                        "jsonPath": ".status.phase",
                        "name": "Phase",
                        "type": "string"
                    }
                ],
                "name": "v1alpha1",
                "schema": {
                    "openAPIV3Schema": {
                        "description": "KameletBinding is the Schema for the kamelets binding API",
                        "properties": {
                            "apiVersion": {
                                "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
                                "type": "string"
                            },
                            "kind": {
                                "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
                                "type": "string"
                            },
                            "metadata": {
                                "type": "object"
                            },
                            "spec": {
                                "description": "KameletBindingSpec --",
                                "properties": {
                                    "integration": {
                                        "description": "Integration is an optional integration used to specify custom parameters",
                                        "properties": {
                                            "configuration": {
                                                "items": {
                                                    "description": "ConfigurationSpec --",
                                                    "properties": {
                                                        "type": {
                                                            "type": "string"
                                                        },
                                                        "value": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "type",

adietish avatar May 04 '21 17:05 adietish