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
@@ -64,26 +64,150 @@ This is an early version of the Hub and we're happy to receive feedback.
64
64
* [[generic-db-26_7_0]]The SDP now provides a generic database connection mechanism, giving a consistent, typed way to configure connections to external SQL databases across operators.
65
65
The same typed structure is used in every CRD, so it can be copied between stacklets.
66
66
+
67
-
--
68
-
[WARNING]
69
-
====
70
67
*Breaking:* This replaces the previous free-form connection strings with a typed struct, and requires changes to your custom resources (and, in some cases, your Secrets):
71
68
72
-
* Apache Airflow: the `.clusterConfig.credentialsSecret` field is renamed to `.clusterConfig.credentialsSecretName`, and the database connection becomes a typed struct.
73
-
Consult the xref:airflow:usage-guide/database-connections.adoc[database connections] documentation page for more details.
74
-
Implemented in https://github.com/stackabletech/airflow-operator/pull/754[airflow-operator#754].
75
-
* Apache Druid: the `metadataStorageDatabase` field is renamed to `metadataDatabase` and is now a typed struct.
76
-
Implemented in https://github.com/stackabletech/druid-operator/pull/814[druid-operator#814].
77
-
* Apache Hive: the connection becomes a typed struct; because the `database` field is removed, the `username` field must be transferred to the Secret referenced in `credentialsSecretName` under the `username` key before upgrading.
78
-
Implemented in https://github.com/stackabletech/hive-operator/pull/674[hive-operator#674].
79
-
* Apache Superset: the connection becomes a typed struct, and the operator now uses an internal Secret for the Superset `SECRET_KEY` (created automatically if missing).
80
-
Consult the xref:superset:usage-guide/database-connections.adoc[database connections] documentation page for more details.
81
-
Implemented in https://github.com/stackabletech/superset-operator/pull/722[superset-operator#722].
82
-
====
69
+
** *Apache Airflow:* The `.clusterConfig.credentialsSecret` field is renamed to `.clusterConfig.credentialsSecretName`, and the database connection becomes a typed struct.
70
+
Consult the xref:airflow:usage-guide/database-connections.adoc[database connections] documentation page for more details.
# Only needed when using celery workers (instead of Kubernetes executors)
106
+
apiVersion: v1
107
+
kind: Secret
108
+
metadata:
109
+
name: airflow-postgresql-credentials
110
+
stringData:
111
+
username: airflow
112
+
password: airflow
113
+
---
114
+
# Only needed when using celery workers (instead of Kubernetes executors)
115
+
apiVersion: v1
116
+
kind: Secret
117
+
metadata:
118
+
name: airflow-redis-credentials
119
+
stringData:
120
+
username: ""
121
+
password: redis
122
+
----
83
123
84
-
// TODO(verify): xref to the per-operator database-connection usage guides (docs checking).
85
-
Tracked in https://github.com/stackabletech/issues/issues/238[issues#238].
124
+
Implemented in https://github.com/stackabletech/airflow-operator/pull/754[airflow-operator#754].
125
+
--
126
+
** *Apache Druid:* The `metadataStorageDatabase` field is renamed to `metadataDatabase` and is now a typed struct.
127
+
+
86
128
--
129
+
[source,yaml]
130
+
----
131
+
# PostgreSQL or MySQL
132
+
kind: DruidCluster
133
+
spec:
134
+
clusterConfig:
135
+
metadataDatabase:
136
+
postgresql: # or mysql
137
+
host: postgresql-druid
138
+
database: druid
139
+
credentialsSecretName: druid-db-credentials
140
+
141
+
# Derby
142
+
kind: DruidCluster
143
+
spec:
144
+
clusterConfig:
145
+
metadataDatabase:
146
+
derby: {}
147
+
----
148
+
149
+
Implemented in https://github.com/stackabletech/druid-operator/pull/814[druid-operator#814].
150
+
--
151
+
** *Apache Hive:* the connection becomes a typed struct; because the `database` field is removed, the `username` field must be transferred to the Secret referenced in `credentialsSecretName` under the `username` key before upgrading.
152
+
+
153
+
--
154
+
[source,yaml]
155
+
----
156
+
kind: HiveCluster
157
+
spec:
158
+
clusterConfig:
159
+
metadataDatabase:
160
+
postgresql:
161
+
host: postgresql
162
+
database: hive
163
+
credentialsSecretName: hive-credentials
164
+
----
165
+
166
+
Implemented in https://github.com/stackabletech/hive-operator/pull/674[hive-operator#674].
167
+
--
168
+
** Apache Superset: the connection becomes a typed struct, and the operator now uses an internal Secret for the Superset `SECRET_KEY` (created automatically if missing).
169
+
Consult the xref:superset:usage-guide/database-connections.adoc[database connections] documentation page for more details.
Implemented in https://github.com/stackabletech/superset-operator/pull/722[superset-operator#722].
206
+
--
207
+
208
+
+
209
+
Tracked in https://github.com/stackabletech/issues/issues/238[issues#238].
210
+
87
211
* Setting a custom client authentication method is now supported for Apache Airflow, Apache Superset and Apache Druid.
88
212
Since Apache Druid 35 and 36, OIDC authentication can fail if the provider (for example Keycloak) advertises `private_key_jwt`, because Druid may attempt to use it.
89
213
This feature lets you override the method so that OIDC authentication works again (this was a known issue in the 26.3.0 release).
0 commit comments