-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[acr] support anonymous pull #17006
[acr] support anonymous pull #17006
Conversation
acr |
@@ -94,6 +94,9 @@ def load_arguments(self, _): # pylint: disable=too-many-statements | |||
with self.argument_context('acr update', arg_group='Network Rule') as c: | |||
c.argument('data_endpoint_enabled', get_three_state_flag(), help="Enable dedicated data endpoint for client firewall configuration") | |||
|
|||
with self.argument_context('acr update') as c: | |||
c.argument('anonymous_pull_enabled', get_three_state_flag(), help="Enables registry-wide pull from unauthenticated clients") |
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.
just curious, should it be enable_anonymous_call?
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 see, to align with swagger
@@ -94,6 +94,9 @@ def load_arguments(self, _): # pylint: disable=too-many-statements | |||
with self.argument_context('acr update', arg_group='Network Rule') as c: | |||
c.argument('data_endpoint_enabled', get_three_state_flag(), help="Enable dedicated data endpoint for client firewall configuration") | |||
|
|||
with self.argument_context('acr update') as c: | |||
c.argument('anonymous_pull_enabled', get_three_state_flag(), help="Enables registry-wide pull from unauthenticated clients") |
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.
c.argument('anonymous_pull_enabled', get_three_state_flag(), help="Enables registry-wide pull from unauthenticated clients") | |
c.argument('anonymous_pull_enabled', get_three_state_flag(), help="Enable registry-wide pull from unauthenticated clients") |
@@ -29,7 +29,7 @@ azure-mgmt-cognitiveservices==6.3.0 | |||
azure-mgmt-compute==19.0.0 | |||
azure-mgmt-consumption==2.0.0 | |||
azure-mgmt-containerinstance==1.5.0 | |||
azure-mgmt-containerregistry==3.0.0rc16 | |||
azure-mgmt-containerregistry==3.0.0rc17 |
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.
since SDK version changed, I'll suppose you've already run live tests :)
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.
@yungezz there is no api version bump in this SDK version. The spec change PR is here FYI: Azure/azure-rest-api-specs#13001
But I still ran a few more tests live to provide enough confidence for this PR. Please take a look and let me know if you have any other suggestions.
Label "Do Not Merge" as this is pending SDK releaseedit: azure-mgmt-containerregistry 3.0.0rc17 was released
Description
Support registry-wide pull from unauthenticated clients
Testing Guide
az acr update -n myRegistry --anonymous-pull-enabled
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.