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
Copy file name to clipboardExpand all lines: deploy/helm/airflow-operator/crds/crds.yaml
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -591,6 +591,16 @@ spec:
591
591
- repo
592
592
type: object
593
593
type: array
594
+
databaseInitialization:
595
+
default:
596
+
enabled: true
597
+
description: Settings related to the database initialization routines (which are always executed by default).
598
+
properties:
599
+
enabled:
600
+
default: true
601
+
description: 'Whether to execute the database initialization routines (a combination of database initialization, upgrade and migration depending on the Airflow version). Defaults to true to be backwards-compatible. WARNING: setting this to false is *unsupported* as subsequent updates to the Airflow cluster may result in broken behaviour due to inconsistent metadata! Do not change the default unless you know what you are doing!'
602
+
type: boolean
603
+
type: object
594
604
exposeConfig:
595
605
default: false
596
606
description: for internal use only - not for production use.
By default, Airflow will run database initialization routines (checking and/or creating the metadata schema and creating an admin user) on start-up.
5
+
These are idempotent and can be run every time as the overhead is minimal.
6
+
However, if these steps should be skipped, a running Airflow cluster can be patched with a resource like this to deactivate the initialization:
7
+
8
+
[source,yaml]
9
+
----
10
+
---
11
+
apiVersion: airflow.stackable.tech/v1alpha1
12
+
kind: AirflowCluster
13
+
metadata:
14
+
name: airflow
15
+
spec:
16
+
clusterConfig:
17
+
databaseInitialization:
18
+
enabled: false # <1>
19
+
----
20
+
<1> Turn off the initialization routine by setting `databaseInitialization.enabled` to `false`
21
+
22
+
NOTE: The field `databaseInitialization.enabled` is `true` by default to be backwards-compatible.
23
+
A fresh Airflow cluster cannot be created with this field set to `false` as this results in missing metadata in the Airflow database.
24
+
25
+
WARNING: Setting `databaseInitialization.enabled` to `false` is an unsupported operation as subsequent updates to a running Airflow cluster can result in broken behaviour due to inconsistent metadata.
26
+
Only set `databaseInitialization.enabled` to `false` if you know what you are doing!
/// Whether to execute the database initialization routines (a combination of database initialization, upgrade and migration depending on the Airflow version). Defaults to true to be backwards-compatible.
292
+
/// WARNING: setting this to false is *unsupported* as subsequent updates to the Airflow cluster may result in broken behaviour due to inconsistent metadata!
293
+
/// Do not change the default unless you know what you are doing!
0 commit comments