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

[acr] support anonymous pull #17006

Merged
merged 5 commits into from
Mar 9, 2021
Merged

[acr] support anonymous pull #17006

merged 5 commits into from
Mar 9, 2021

Conversation

yugangw-msft
Copy link
Contributor

@yugangw-msft yugangw-msft commented Feb 20, 2021

Label "Do Not Merge" as this is pending SDK release
edit: 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

@yonzhan
Copy link
Collaborator

yonzhan commented Feb 20, 2021

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")
Copy link
Member

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?

Copy link
Member

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")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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
Copy link
Member

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 :)

Copy link
Contributor Author

@yugangw-msft yugangw-msft Mar 9, 2021

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.

@yungezz yungezz merged commit 5368958 into Azure:dev Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants