diff --git a/api/types/database.go b/api/types/database.go index 5bf2dd98eefd7..38eb08418fa6d 100644 --- a/api/types/database.go +++ b/api/types/database.go @@ -774,7 +774,7 @@ func (d *DatabaseV3) CheckAndSetDefaults() error { d.Spec.AWS.MemoryDB.EndpointType = endpointInfo.EndpointType case azureutils.IsDatabaseEndpoint(d.Spec.URI): - // For Azure MySQL and PostgresSQL. + // For Azure MySQL and PostgreSQL. name, err := azureutils.ParseDatabaseEndpoint(d.Spec.URI) if err != nil { return trace.Wrap(err) diff --git a/api/types/database_test.go b/api/types/database_test.go index bd41cd392c2b0..f8d53a795dd18 100644 --- a/api/types/database_test.go +++ b/api/types/database_test.go @@ -314,7 +314,7 @@ func TestDatabaseAzureEndpoints(t *testing.T) { }, }, { - name: "valid PostgresSQL", + name: "valid PostgreSQL", spec: DatabaseSpecV3{ Protocol: "postgres", URI: "example-postgres.postgres.database.azure.com:5432", diff --git a/api/utils/azure/endpoints.go b/api/utils/azure/endpoints.go index e2e2b7e7f7ff8..eef9841feb3a0 100644 --- a/api/utils/azure/endpoints.go +++ b/api/utils/azure/endpoints.go @@ -178,7 +178,7 @@ func ParseMSSQLEndpoint(endpoint string) (name string, err error) { const ( // DatabaseEndpointSuffix is the Azure database endpoint suffix. Used for - // MySQL, PostgresSQL, etc. + // MySQL, PostgreSQL, etc. DatabaseEndpointSuffix = ".database.azure.com" // RedisEndpointSuffix is the endpoint suffix for Redis. diff --git a/docs/pages/includes/config-reference/proxy-service.yaml b/docs/pages/includes/config-reference/proxy-service.yaml index be8831e749773..4acd21394a8e0 100644 --- a/docs/pages/includes/config-reference/proxy-service.yaml +++ b/docs/pages/includes/config-reference/proxy-service.yaml @@ -119,7 +119,7 @@ proxy_service: # Address advertised to MySQL clients. If not set, public_addr is used. mysql_public_addr: "mysql.teleport.example.com:3306" - # Address advertised to PostgresSQL clients. If not set, public_addr is + # Address advertised to PostgreSQL clients. If not set, public_addr is # used. postgres_public_addr: "postgres.teleport.example.com:443" diff --git a/lib/srv/discovery/fetchers/db/azure_dbserver.go b/lib/srv/discovery/fetchers/db/azure_dbserver.go index b42160a374ea6..0d184bd2b0425 100644 --- a/lib/srv/discovery/fetchers/db/azure_dbserver.go +++ b/lib/srv/discovery/fetchers/db/azure_dbserver.go @@ -30,12 +30,12 @@ func newAzureMySQLFetcher(config azureFetcherConfig) (common.Fetcher, error) { return newAzureFetcher[*azure.DBServer, azure.DBServersClient](config, &azureDBServerPlugin{}) } -// newAzureMySQLFetcher creates a fetcher for Azure PostgresSQL. +// newAzureMySQLFetcher creates a fetcher for Azure PostgreSQL. func newAzurePostgresFetcher(config azureFetcherConfig) (common.Fetcher, error) { return newAzureFetcher[*azure.DBServer, azure.DBServersClient](config, &azureDBServerPlugin{}) } -// azureDBServerPlugin implements azureFetcherPlugin for MySQL and PostgresSQL. +// azureDBServerPlugin implements azureFetcherPlugin for MySQL and PostgreSQL. type azureDBServerPlugin struct{} func (p *azureDBServerPlugin) GetListClient(cfg *azureFetcherConfig, subID string) (azure.DBServersClient, error) { diff --git a/lib/srv/discovery/fetchers/db/azure_dbserver_test.go b/lib/srv/discovery/fetchers/db/azure_dbserver_test.go index 267f0eaea0a4c..05bee819977e7 100644 --- a/lib/srv/discovery/fetchers/db/azure_dbserver_test.go +++ b/lib/srv/discovery/fetchers/db/azure_dbserver_test.go @@ -34,7 +34,7 @@ import ( ) // TestAzureDBServerFetchers tests common azureFetcher functionalities and the -// azureDBServerPlugin which is used for Azure MySQL and Azure PostgresSQL. +// azureDBServerPlugin which is used for Azure MySQL and Azure PostgreSQL. func TestAzureDBServerFetchers(t *testing.T) { t.Parallel()