Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes unnecessary AzureContainerInstance connection type #15514

Merged
merged 1 commit into from Apr 25, 2021

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Apr 24, 2021

The AzureContainerInstanceHook was derived from AzureBaseHook
and it did not add any new connection fields. Instead
it duplicated the tennantId and subscriptionId extr behaviour,
but it never worked, because it duplicated the fields
from the AzureBaseHook - and caused a lot of warnings when
AzureProvider was added.

This change sets the default connection type for the
AzureContainerInstanceHook to be azure_default and the
connection type to be 'azure'.

Those defaults are much more 'sane'. The existing connections
will continue to work, only when you open them in the UI, they
will display the extras directly rather than in dedicated fields
until the user changes the connection type to "azure" which will
fix the display.

So no disruptions, just temporary UI/Editing glitch. No more warnings
printed when Azure provider is added.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

Copy link
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Apr 25, 2021
@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest master at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

The AzureContainerInstanceHook was derived from AzureBaseHook
and it did not add any new connection fields. Instead
it duplicated the tennantId and subscriptionId extr behaviour,
but it never worked, because it duplicated the fields
from the AzureBaseHook - and caused a lot of warnings when
AzureProvider was added.

This change sets the default connection type for the
AzureContainerInstanceHook to be azure_default and the
connection type to be 'azure'.

Those defaults are much more 'sane'. The existing connections
will continue to work, only when you open them in the UI, they
will display the extras directly rather than in dedicated fields
until the user changes the connection type to "azure" which will
fix the display.

So no disruptions, just temporary UI/Editing glitch. No more warnings
printed when Azure provider is added.
@potiuk potiuk force-pushed the fix-azure-provider-warnings branch from f9069d3 to e32de27 Compare April 25, 2021 05:38
@potiuk potiuk merged commit d65e492 into apache:master Apr 25, 2021
@potiuk potiuk deleted the fix-azure-provider-warnings branch April 25, 2021 06:40
@potiuk potiuk restored the fix-azure-provider-warnings branch April 26, 2022 20:46
@potiuk potiuk deleted the fix-azure-provider-warnings branch July 29, 2022 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers full tests needed We need to run full set of tests for this PR to merge provider:microsoft-azure Azure-related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants