Skip to content

Commit

Permalink
adding trigger info to provider yaml (#29950)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowrna authored Mar 8, 2023
1 parent a9b79a2 commit c386778
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 0 deletions.
24 changes: 24 additions & 0 deletions airflow/provider.yaml.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,30 @@
]
}
},
"triggers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"integration-name": {
"type": "string",
"description": "Integration name. It must have a matching item in the 'integration' section of any provider."
},
"python-modules": {
"description": "List of python modules containing the triggers.",
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"integration-name",
"python-modules"
]
}
},
"connection-types": {
"type": "array",
"description": "Array of connection types mapped to hook class names",
Expand Down
5 changes: 5 additions & 0 deletions airflow/providers/apache/livy/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ hooks:
python-modules:
- airflow.providers.apache.livy.hooks.livy

triggers:
- integration-name: Apache Livy
python-modules:
- airflow.providers.apache.livy.triggers.livy


connection-types:
- hook-class-name: airflow.providers.apache.livy.hooks.livy.LivyHook
Expand Down
5 changes: 5 additions & 0 deletions airflow/providers/cncf/kubernetes/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ hooks:
python-modules:
- airflow.providers.cncf.kubernetes.hooks.kubernetes

triggers:
- integration-name: Kubernetes
python-modules:
- airflow.providers.cncf.kubernetes.triggers.pod


connection-types:
- hook-class-name: airflow.providers.cncf.kubernetes.hooks.kubernetes.KubernetesHook
Expand Down
5 changes: 5 additions & 0 deletions airflow/providers/databricks/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ hooks:
python-modules:
- airflow.providers.databricks.hooks.databricks_sql

triggers:
- integration-name: Databricks
python-modules:
- airflow.providers.databricks.triggers.databricks


connection-types:
- hook-class-name: airflow.providers.databricks.hooks.databricks.DatabricksHook
Expand Down
6 changes: 6 additions & 0 deletions airflow/providers/dbt/cloud/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ hooks:
python-modules:
- airflow.providers.dbt.cloud.hooks.dbt

triggers:
- integration-name: dbt Cloud
python-modules:
- airflow.providers.dbt.cloud.triggers.dbt


connection-types:
- hook-class-name: airflow.providers.dbt.cloud.hooks.dbt.DbtCloudHook
connection-type: dbt_cloud
Expand Down
32 changes: 32 additions & 0 deletions airflow/providers/google/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,38 @@ hooks:
python-modules:
- airflow.providers.google.cloud.hooks.dataform

triggers:
- integration-name: Google BigQuery Data Transfer Service
python-modules:
- airflow.providers.google.cloud.triggers.bigquery_dts
- integration-name: Google BigQuery
python-modules:
- airflow.providers.google.cloud.triggers.bigquery
- integration-name: Google Cloud Build
python-modules:
- airflow.providers.google.cloud.triggers.cloud_build
- integration-name: Google Cloud Composer
python-modules:
- airflow.providers.google.cloud.triggers.cloud_composer
- integration-name: Google Dataflow
python-modules:
- airflow.providers.google.cloud.triggers.dataflow
- integration-name: Google Data Fusion
python-modules:
- airflow.providers.google.cloud.triggers.datafusion
- integration-name: Google Dataproc
python-modules:
- airflow.providers.google.cloud.triggers.dataproc
- integration-name: Google Cloud Storage (GCS)
python-modules:
- airflow.providers.google.cloud.triggers.gcs
- integration-name: Google Kubernetes Engine
python-modules:
- airflow.providers.google.cloud.triggers.kubernetes_engine
- integration-name: Google Machine Learning Engine
python-modules:
- airflow.providers.google.cloud.triggers.mlengine

transfers:
- source-integration-name: Presto
target-integration-name: Google Cloud Storage (GCS)
Expand Down

0 comments on commit c386778

Please sign in to comment.
  翻译: