Skip to content

Commit

Permalink
Fix incorrect PostgreSQL spelling (#46121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tener authored Sep 3, 2024
1 parent 5729dcd commit 6e5b33e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/types/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,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)
Expand Down
2 changes: 1 addition & 1 deletion api/types/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func TestDatabaseAzureEndpoints(t *testing.T) {
},
},
{
name: "valid PostgresSQL",
name: "valid PostgreSQL",
spec: DatabaseSpecV3{
Protocol: "postgres",
URI: "example-postgres.postgres.database.azure.com:5432",
Expand Down
2 changes: 1 addition & 1 deletion api/utils/azure/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/includes/config-reference/proxy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions lib/srv/discovery/fetchers/db/azure_dbserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/srv/discovery/fetchers/db/azure_dbserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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()

Expand Down

0 comments on commit 6e5b33e

Please sign in to comment.