Skip to content

Commit 0052440

Browse files
adwk67sbernauer
andauthored
Apply suggestions from code review
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
1 parent c9a4bd1 commit 0052440

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/modules/superset/pages/getting_started/first_steps.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Refer to the xref:required-external-components[supported databases] for producti
1616

1717
== Secret with Superset credentials
1818

19-
You need to create secrets with the required credentials (an admin account for Superset and database connection credentials).
19+
You need to create two Secrets with the required credentials (an admin account for Superset as well as database connection credentials).
2020
Create a file called `superset-credentials.yaml`:
2121

2222
[source,yaml]
@@ -48,7 +48,7 @@ include::example$getting_started/getting_started.sh[tag=apply-superset-cluster]
4848

4949
`metadata.name` contains the name of the Superset cluster.
5050

51-
The previously created credentials secret must be referenced in `spec.clusterConfig.credentialsSecretName`, and the database connection is configured via `spec.clusterConfig.metadataDatabase`.
51+
The previously created credentials Secret must be referenced in `spec.clusterConfig.credentialsSecretName`, and the database connection Secret is configured via `spec.clusterConfig.metadataDatabase`.
5252

5353
The `rowLimit` configuration option defines the row limit when requesting chart data.
5454

docs/modules/superset/pages/usage-guide/database-connections.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ spec:
1717
credentialsSecretName: superset-postgresql-credentials # <2>
1818
----
1919
<1> A reference to one of the supported database backends (e.g. `postgresql`).
20-
<2> A reference to a Secret which must contain the two fields `username` and `password`.
20+
<2> A reference to a Secret which must contain the two keys `username` and `password`.
2121

2222
== Generic connections
2323

24-
Alternatively, these connections can also be defined in full in a referenced secret:
24+
Alternatively, these connections can also be defined in full in a referenced Secret:
2525

2626
[source,yaml]
2727
----
@@ -32,4 +32,4 @@ spec:
3232
connectionUrlSecretName: superset-metadata # <1>
3333
----
3434

35-
<1> A reference to a secret which must contain the single field `connectionUrl` e.g. `postgresql://superset:superset@superset-postgresql/superset`
35+
<1> A reference to a Secret which must contain the single key `connectionUrl` e.g. `postgresql://superset:superset@superset-postgresql/superset`

rust/operator-binary/src/druid_connection_controller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ async fn build_import_job(
331331
));
332332

333333
// "METADATA" is the prefix for the env vars that hold the database credentials
334-
// (e.g. METADATA_DATABASE_USERNAME, METADATA_DATABASE_PASSWORD). It must match
334+
// (e.g. METADATA_DATABASE_USERNAME, METADATA_DATABASE_PASSWORD). It should match
335335
// the prefix used by the airflow-operator for consistency.
336336
let templating_mechanism = TemplatingMechanism::BashEnvSubstitution;
337337
let metadata_database_connection_details = superset_cluster

rust/operator-binary/src/superset_controller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ fn build_server_rolegroup_statefulset(
719719
.service_account_name(sa_name);
720720

721721
// "METADATA" is the prefix for the env vars that hold the database credentials
722-
// (e.g. METADATA_DATABASE_USERNAME, METADATA_DATABASE_PASSWORD). It must match
722+
// (e.g. METADATA_DATABASE_USERNAME, METADATA_DATABASE_PASSWORD). It should match
723723
// the prefix used by the airflow-operator for consistency.
724724
let templating_mechanism = TemplatingMechanism::BashEnvSubstitution;
725725
let metadata_database_connection_details = superset

0 commit comments

Comments
 (0)