From 9ab51146d753e17a23e7eff0a939f79a8e4dc2ce Mon Sep 17 00:00:00 2001 From: Ryan Hamilton Date: Wed, 12 May 2021 18:11:33 -0400 Subject: [PATCH] Remove example plugin no longer serving purpose (#410) --- airflow/airflow.go | 1 - airflow/airflow_test.go | 1 - airflow/include/exampleplugin.go | 43 -------------------------------- 3 files changed, 45 deletions(-) delete mode 100644 airflow/include/exampleplugin.go diff --git a/airflow/airflow.go b/airflow/airflow.go index 5283ffdf9..ab7941524 100644 --- a/airflow/airflow.go +++ b/airflow/airflow.go @@ -72,7 +72,6 @@ func Init(path string, airflowImageTag string) error { ".env": "", "airflow_settings.yaml": include.Settingsyml, "dags/example-dag.py": include.Exampledag, - "plugins/example-plugin.py": include.ExamplePlugin, } // Initailize directories diff --git a/airflow/airflow_test.go b/airflow/airflow_test.go index b4c03f363..a2e493cbc 100644 --- a/airflow/airflow_test.go +++ b/airflow/airflow_test.go @@ -81,7 +81,6 @@ func TestInit(t *testing.T) { ".env", "airflow_settings.yaml", "dags/example-dag.py", - "plugins/example-plugin.py", } for _, file := range expectedFiles { exist, err := fileutil.Exists(filepath.Join(tmpDir, file)) diff --git a/airflow/include/exampleplugin.go b/airflow/include/exampleplugin.go deleted file mode 100644 index 2166c1d83..000000000 --- a/airflow/include/exampleplugin.go +++ /dev/null @@ -1,43 +0,0 @@ -package include - -import "strings" - -// ExamplePlugin created with astro airflow init -var ExamplePlugin = strings.TrimSpace(` -from airflow.plugins_manager import AirflowPlugin - -""" -Look for the Astronomer tab in the UI. -""" -airflow_plugins_ml = { - "name": "Airflow-Plugins", - "category": "Astronomer", - "category_icon": "fa-rocket", - "href": "https://github.com/airflow-plugins/" -} - -astro_docs_ml = { - "name": "Astronomer Docs", - "category": "Astronomer", - "category_icon": "fa-rocket", - "href": "https://www.astronomer.io/docs/" -} - -astro_guides_ml = { - "name": "Airflow Guide", - "category": "Astronomer", - "category_icon": "fa-rocket", - "href": "https://www.astronomer.io/guides/" -} - -class AstroLinksPlugin(AirflowPlugin): - name = 'astronomer_menu_links' - operators = [] - flask_blueprints = [] - hooks = [] - executors = [] - macros = [] - admin_views = [] - appbuilder_views = [] - appbuilder_menu_items = [airflow_plugins_ml, astro_docs_ml, astro_guides_ml] -`)