-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Bump azure-mgmt-containerinstance #34738
Bump azure-mgmt-containerinstance #34738
Conversation
@@ -90,7 +89,6 @@ class AzureContainerInstancesOperator(BaseOperator): | |||
:param restart_policy: Restart policy for all containers within the container group. | |||
Possible values include: 'Always', 'OnFailure', 'Never' | |||
:param ip_address: The IP address type of the container group. | |||
:param network_profile: The network profile information for a container group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is breaking change.
Please set major version on provider.yaml
we will also need entry in changelog.rst (top of the file) with the things that were broken and how to mitigate them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, still try a few things, will update the provider.yaml and changelog.rst if needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, updated provider.yaml and changelog
Hi, I'm just adding some additional info for you guys that will be relevant once you come to updating the hooks (related issue #34749)
|
@@ -19,7 +19,7 @@ | |||
|
|||
import warnings | |||
from functools import cached_property | |||
from typing import TYPE_CHECKING, Any | |||
from typing import TYPE_CHECKING, Any, cast | |||
|
|||
from azure.common.client_factory import get_client_from_auth_file, get_client_from_json_dict | |||
from azure.common.credentials import ServicePrincipalCredentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Package is deprecated and no longer working. Consider using azure.identity
(relevant info)
Related issue on azure-sdk-for-python
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed ServicePrincipalCredentials and added ClientSecretCredential from azure.identity
f35f605
to
39eb6e4
Compare
@@ -52,7 +52,10 @@ def setup_test_cases(self, create_mock_connection): | |||
conn_type="azure_container_instances", | |||
login="login", | |||
password="key", | |||
extra={"tenantId": "tenant_id", "subscriptionId": "subscription_id"}, | |||
extra={ | |||
"tenantId": "63e85d06-62e4-11ee-8c99-0242ac120002", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a valid id? or just some random one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is Random. I use https://www.uuidgenerator.net/ to generate it. The new sdk throws a value error if tenantId is not valid uuid
|
||
* Remove ``network_profile`` param from ``AzureContainerInstancesOperator`` | ||
* Remove deprecated ``extra__azure__tenantId`` from azure_container_instance connection extras | ||
* Remove deprecated ``extra__azure__subscriptionId`` from azure_container_instance connection extras |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we mention the named tuple Volume
has been removed as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reverted this PTAL
39eb6e4
to
7f08469
Compare
7f08469
to
e3d6079
Compare
* Bump azure-mgmt-containerinstance * Apply review suggestions (cherry picked from commit 9ee14a0)
* Bump azure-mgmt-containerinstance * Apply review suggestions (cherry picked from commit 9ee14a0)
Related to: #30199
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.