Closed ghost closed 6 years ago
Hello @PavelPavlov46. When you called svcat bind
, you did not include any parameters, which are required for the CloudSql for MySQL service class.
The binding to your CloudSQL for MySQL instance is what grants the specified level of access to your resource to the specified service account. For example, the cloud-sql-mysql sample app binds to the instance here. The parameters from the binding's yaml file are:
parameters:
roles:
- roles/cloudsql.client
serviceAccount: cloudsql-user-service-account
In this example, the act of binding grants the roles/cloudsql.client
role to the cloudsql-user-service-account
service account in your configured project.
Let me know if you have any more questions! We are happy to help.
Thanks @khipkin ! Yes, I agree with you and understand. It is just that to get there took some time and googling arround, because the section "Bind to an instance" of the guide at use-service-catalog didn't help much to understand which are the mandatory parameters I need to pass. You can take this issue as docu update request or some additional feature in the "svcat bind" comamnd where I can go as "stupid user" and ask "hey what are the mandatory params I need to give you to bind a Service of type abc" . If i miss something and this does not seem to make sense for other less experienced users we can Close my issue. Thanks again and wishing you succesfull week! Regards, Pavel
Thanks for your feedback, @PavelPavlov46! We will take that into consideration. 😄Since your problem has been resolved, I will close this issue. Please let us know if we can do anything else to help!
Hello,
I'm following https://cloud.google.com/kubernetes-engine/docs/how-to/add-on/service-catalog/use-service-catalog and facing issue at last step - bind to an instance. When I execute "svcat bind [INSTANCE-NAME] (--namespace [NAMESPACE] --param [KEY1]=[VALUE1] --param [KEY2]=[VALUE2] ...)" , the binding fails with "Invalid properties for 'gcp-services/composite:cloud-sql-mysql-binding-f3622e2':\n'parameters' is a required property".
Could you please help me to identify what are the mandatory parameters for binding MySQL 5.7 instance and maybe consider how the catalog and docu can be improved to provide more details about the error.
Thank you!
Can be reproduced by:
(based on https://github.com/GoogleCloudPlatform/kubernetes-engine-samples/blob/master/service-catalog/cloud-sql-mysql/manifests/cloudsql-binding.yaml ) the binding can be done by doing something like: