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

custom domains are cleared when updating a container app via command line #234

Closed
2 tasks
vmantese opened this issue May 28, 2022 · 9 comments
Closed
2 tasks
Labels
bug Something isn't working

Comments

@vmantese
Copy link

vmantese commented May 28, 2022

Please provide us with the following information:

This issue is a: (mark with an x)

  • [ X] bug report -> please search issues before submitting
  • documentation issue or request
  • regression (a behavior that used to work and stopped in a new release)

Issue description

I noticed that when using the az containerapp up command in my azure devops pipeline to update a container app with a new image the custom domains are all cleared.

Steps to reproduct

  1. Create a container app custom domain
  2. Update container app via command line (az containerapp up)
  3. Check custom domains

Expected behavior [What you expected to happen.]
Custom domains remain

Actual behavior [What actually happened.]
custom domains are cleared

Additional context

Ex. Did this issue occur in the CLI or the Portal?
Occurs via cli but visible in portal

@ghost ghost added the Needs: triage 🔍 Pending a first pass to read, tag, and assign label May 28, 2022
@torosent torosent added bug Something isn't working and removed Needs: triage 🔍 Pending a first pass to read, tag, and assign labels May 30, 2022
@panchagnula
Copy link

Thanks for reporting we are taking a look at this. @vmantese can you run az--version & share what cli version being used. Thanks!

@StrawnSC
Copy link

StrawnSC commented Jun 1, 2022

I'm able to repro this in the latest version. It looks like the CLI is missing the existing ingress settings on the PUT call for az containerapp up. I'll start working on a fix

@panchagnula
Copy link

I'm able to repro this in the latest version. It looks like the CLI is missing the existing ingress settings on the PUT call for az containerapp up. I'll start working on a fix

Thanks for the update - out of curiosity is there a reason CLI "up" doesn't use PATCH for existing apps instead of PUT - that will cause such behavior

@StrawnSC
Copy link

StrawnSC commented Jun 1, 2022

It looks like I was mistaken -- we actually do call PATCH for updates. This might be an API error then since having custom domains as null shouldn't clear them if the method is PATCH

@panchagnula
Copy link

It looks like I was mistaken -- we actually do call PATCH for updates. This might be an API error then since having custom domains as null shouldn't clear them if the method is PATCH

@vinisoto FYI - since this seems to be a API issue with PATCH?

@vmantese
Copy link
Author

vmantese commented Jun 2, 2022

Here is the version number from azdevops @panchagnula

From logs:

Starting: AzureCLI
==============================================================================
Task         : Azure CLI
Description  : Run Azure CLI commands against an Azure subscription in a PowerShell Core/Shell script when running on Linux agent or PowerShell/PowerShell Core/Batch script when running on Windows agent.
Version      : 2.198.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-cli
==============================================================================

@vmantese
Copy link
Author

vmantese commented Jun 3, 2022

@StrawnSC Do you publish your forked versions anywhere or should I wait for an official version bump?

runefa added a commit to calvinsID/azure-cli-extensions that referenced this issue Jun 3, 2022
* Fix microsoft/azure-container-apps#234

* Added history note.

Co-authored-by: Haroon Feisal <[email protected]>
Co-authored-by: Haroon Feisal <[email protected]>
@StrawnSC
Copy link

StrawnSC commented Jun 3, 2022

@vmantese the azure CLI and the azure CLI extensions repos are both open source. My forks are public, but I wouldn't recommend going using a non-release version of the containerapp CLI extension.

We're targeting a 6/7 release for the update with this fix.

@vmantese
Copy link
Author

vmantese commented Jun 13, 2022

Thanks @StrawnSC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants