mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-08-27 00:37:20 +00:00
* fix(mysql): respect TLS configuration in MySQL collector The MySQL collector was ignoring the TLS field in the Database spec, which caused TLS connections to fail even when properly configured. This change mirrors the PostgreSQL collector pattern: - Parse the MySQL DSN using mysql.ParseDSN - When TLS is configured, create a tls.Config and set cfg.TLS - Use sql.OpenDB with mysql.NewConnector when TLS is active - Keep the existing sql.Open path for backward compatibility Fixes: MySQL preflight fails over TLS connections * fix(mysql): address review feedback - Fix gofmt indentation in mysql_test.go - Remove duplicate DSN parsing in createConnectConfig - Add CA-cert-only TLS test case --------- Co-authored-by: Chuck D'Antonio <chuck@replicated.com>