-
Notifications
You must be signed in to change notification settings - Fork 706
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
[ServiceCatalog] Support $ref in JSON schema when creating service instances #362
Comments
It looks like the plan has a Schema, but Kubeapps is not picking it up correctly. This is the ClusterServicePlan yaml: https://gist.github.com/arapulido/66c026043fbd88fe5e9b183afcc35288 |
Steps to deploy the GCP broker (I have only tried this on a GKE cluster)
|
Thanks @arapulido, I'll look into this. Do you have a screenshot of what you're seeing? |
@prydonius I think the culprit is this: https://github.com/kubeapps/kubeapps/blob/master/dashboard/src/components/ProvisionButton/index.tsx#L57 In some cases (like Cloud SQL - MySQL) the description of the parameters is under schema.definitions and not directly under properties (https://gist.github.com/arapulido/66c026043fbd88fe5e9b183afcc35288#file-gistfile1-txt-L29). We should check definitions as well |
@arapulido good find, the actual issue looks like we're not properly supporting |
I have modified the code so that the ServiceInstance name form is separate to the parameters prompt, which allows us to delegate the full schema from the API to the react-jsonschema-form component. This works and I'm now able to enter parameters for Cloud SQL. However, once I hit provision now after entering the required parameter (Instance ID), I'm getting the following cryptic error.
|
From what I can see in the docs (https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/insert), instance id and settings.tier are the only required attributes, so I'm not sure why this should be failing. Seems like a broker-specific issue though, so will file an issue upstream. |
I installed the GCP broker successfully and was able to browse the catalog, but when I tried to provision an instance of
Cloud SQL - MySQL
kubeapps only asked me for aname
and then I got the following error:The text was updated successfully, but these errors were encountered: