-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Container app] az containerapp create: Fix to make --registry-username value to be DNS1123 compliant
#30563
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
[Container app] az containerapp create: Fix to make --registry-username value to be DNS1123 compliant
#30563
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
|
|
Please follow this guideline to refine the title and description section |
|
Please add some tests to verify the changes. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Please note Azure CLI will freeze the code on 01/28/2025 10:00 UTC for the upcoming release. If you want to catch this release train, please get this PR ready ASAP, otherwise it has to be postponed to next sprint. |
Please mark this PR as a draft PR if this PR is not ready to be reviewed yet |
az containerapp create: Fix to make registry_user DNS1123 compliant
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Please add test for this fix, refer test case: |
…com/william-msft/azure-cli into williamhe/fix-user-validation-error
|
/azp run |
|
Commenter does not have sufficient privileges for PR 30563 in repo Azure/azure-cli |
|
@yanzhudd @Greedygre could one of you re-run the pipeline please? I don't have enough permission. Thank you. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/test_containerapp_commands.py
Outdated
Show resolved
Hide resolved
…com/william-msft/azure-cli into williamhe/fix-user-validation-error
… a username value
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Can you help to review and approve this PR when you have chance? Thanks! |
az containerapp create: Fix to make registry_user DNS1123 compliantaz containerapp create: Fix to make --registry-username value to be DNS1123 compliant
…rname` value to be `DNS1123` compliant (Azure#30563)
Related command
Description
Performing the related command above will fail because the
@symbol will cause an error:This fix will force the
registry-usernamevalue to be DNS1123 compliant.Testing Guide

Below is a screenshot of my manual test this change
Since this is not testable with the existing E2E framework. The reason is because ACR/MCR does not support email as a username value and our customers want to use registries like JFrog, DockerHub, etc. Which allow email address as a username.
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 featureThis checklist is used to make sure that common guidelines for a pull request are followed.
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.