|
| 1 | +apiVersion: kuttl.dev/v1beta1 |
| 2 | +kind: TestStep |
| 3 | +metadata: |
| 4 | + name: install-airflow-db |
| 5 | +timeout: 480 |
| 6 | +--- |
| 7 | +apiVersion: v1 |
| 8 | +kind: Secret |
| 9 | +metadata: |
| 10 | + name: test-airflow-credentials |
| 11 | +type: Opaque |
| 12 | +stringData: |
| 13 | + adminUser.username: airflow |
| 14 | + adminUser.firstname: Airflow |
| 15 | + adminUser.lastname: Admin |
| 16 | + adminUser.email: airflow@airflow.com |
| 17 | + adminUser.password: airflow |
| 18 | + connections.secretKey: thisISaSECRET_1234 |
| 19 | + connections.sqlalchemyDatabaseUri: postgresql+psycopg2://airflow:airflow@airflow-postgresql/airflow |
| 20 | + connections.celeryResultBackend: db+postgresql://airflow:airflow@airflow-postgresql/airflow |
| 21 | + connections.celeryBrokerUrl: redis://:redis@airflow-redis-master:6379/0 |
| 22 | +--- |
| 23 | +apiVersion: airflow.stackable.tech/v1alpha1 |
| 24 | +kind: AirflowCluster |
| 25 | +metadata: |
| 26 | + name: airflow |
| 27 | +spec: |
| 28 | + image: |
| 29 | +{% if test_scenario['values']['airflow'].find(",") > 0 %} |
| 30 | + custom: "{{ test_scenario['values']['airflow'].split(',')[1] }}" |
| 31 | + productVersion: "{{ test_scenario['values']['airflow'].split(',')[0] }}" |
| 32 | +{% else %} |
| 33 | + productVersion: "{{ test_scenario['values']['airflow'] }}" |
| 34 | +{% endif %} |
| 35 | + pullPolicy: IfNotPresent |
| 36 | + clusterConfig: |
| 37 | + loadExamples: true |
| 38 | + credentialsSecret: test-airflow-credentials |
| 39 | + webservers: |
| 40 | + config: |
| 41 | + listenerClass: external-stable |
| 42 | + roleGroups: |
| 43 | + default: |
| 44 | + replicas: 1 |
| 45 | + external-unstable: |
| 46 | + replicas: 1 |
| 47 | + config: |
| 48 | + listenerClass: external-unstable |
| 49 | + cluster-internal: |
| 50 | + replicas: 1 |
| 51 | + config: |
| 52 | + listenerClass: cluster-internal |
| 53 | + celeryExecutors: |
| 54 | + config: |
| 55 | + listenerClass: external-stable |
| 56 | + roleGroups: |
| 57 | + default: |
| 58 | + replicas: 2 |
| 59 | + schedulers: |
| 60 | + config: |
| 61 | + listenerClass: external-unstable |
| 62 | + roleGroups: |
| 63 | + default: |
| 64 | + replicas: 1 |
0 commit comments