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 a secret containing connection parameters for Mysql server doesn't contain port, the connection will timeout when attempting to use the provider, e.g. when creating a user:
The problem is that provider-aws doesn't write port data for DB cluster (maybe for others as well). While it makes sense to address this in provider-aws, I also believe it makes sense to set a default port in provider-sql, as user's intention would likely be to connect over 3306 (instead of 0).
Assume that the absence of port in the connection secret means that the connection attempt should happen over the default port.
I'd be happy to submit a PR if this proposal makes sense. As far as I can tell the required change is in pkg/clients/mysql/mysql.go, where we could put a default port constant, and use it if the port is an empty string.
The text was updated successfully, but these errors were encountered:
What problem are you facing?
If a secret containing connection parameters for Mysql server doesn't contain
port
, the connection will timeout when attempting to use the provider, e.g. when creating a user:The problem is that provider-aws doesn't write
port
data for DB cluster (maybe for others as well). While it makes sense to address this in provider-aws, I also believe it makes sense to set a default port in provider-sql, as user's intention would likely be to connect over 3306 (instead of 0).Example secret created by provider-aws:
How could Crossplane help solve your problem?
Assume that the absence of port in the connection secret means that the connection attempt should happen over the default port.
I'd be happy to submit a PR if this proposal makes sense. As far as I can tell the required change is in
pkg/clients/mysql/mysql.go
, where we could put a default port constant, and use it if the port is an empty string.The text was updated successfully, but these errors were encountered: