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] az acr connected-registry create/update: Add new arguments for enabling and setting interval for garbage collection within a connected registry #30956

Draft
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

trisavo-msft
Copy link
Member

@trisavo-msft trisavo-msft commented Mar 5, 2025

Related command

az acr connected-registry create, az acr connected-registry update

Description

  • Added new parameter "gc-enabled" which enables or disables garbage collection on a connected registry
  • Added new parameter "gc-schedule" which uses cron expression to set a collection interval.
  • Modified connected registry unit tests with the changes
  • Update default acr mgmt client and connected registry client to 2024-11-01-preview.
  • Update test recordings

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

Copy link

Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

Copy link

Validation for Breaking Change Starting...

Thanks for your contribution!

@yonzhan
Copy link
Collaborator

yonzhan commented Mar 5, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

Copy link

github-actions bot commented Mar 5, 2025

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@trisavo-msft trisavo-msft changed the title update sdk [ACR] az acr create/update: Add new arguments for enabling and setting interval for garbage collection within a connected registry Mar 5, 2025
@trisavo-msft trisavo-msft changed the title [ACR] az acr create/update: Add new arguments for enabling and setting interval for garbage collection within a connected registry [ACR] az acr connected-registry create/update: Add new arguments for enabling and setting interval for garbage collection within a connected registry Mar 6, 2025
@@ -24,7 +24,7 @@ def test_acr_connectedregistry(self, resource_group):
'root_name': rootName,
'child_name': childName,
'grandchild_name': grandchildName,
'rg_loc': 'eastus',
'rg_loc': 'westcentralus',
Copy link
Contributor

Choose a reason for hiding this comment

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

Question, why need make this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was initially for testing to verify garbage collection since the RP release made it to westcentralus. I will change it back to eastus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants