Create NoGCPServiceAccountKeyInConfigRule to ease upgrade to Airflow 2.0 #11047
Labels
area:upgrade
Facilitating migration to a newer version of Airflow
good first issue
kind:feature
Feature Requests
Milestone
This issue is part of #8765
Rule
Create
NoGCPServiceAccountKeyInConfigRule
which corresponds toentry in UPDATING.md. This rule should allow users to check if their current configuration needs any adjusting
before migration to Airflow 2.0.
How to guide
To implement a new rule, create a class that inherits from
airflow.upgrade.rules.base_rule.BaseRule
.It will be auto-registered and used by
airflow upgrade-check
command. The custom rule class has to havetitle
,description
properties and should implementcheck
method which returns a list of error messages in case ofincompatibility.
For example:
airflow/airflow/upgrade/rules/conn_type_is_not_nullable.py
Lines 25 to 42 in ea36166
Remember to open the PR against
v1-10-test
branch.The text was updated successfully, but these errors were encountered: