Skip to content

[containerapp] Fix az containerapp update --secret-volume-mount appending to NoneType object bug#6821

Merged
wangzelin007 merged 4 commits intoAzure:mainfrom
smzeng:stacyzeng/fix-secret-volume-update
Oct 8, 2023
Merged

[containerapp] Fix az containerapp update --secret-volume-mount appending to NoneType object bug#6821
wangzelin007 merged 4 commits intoAzure:mainfrom
smzeng:stacyzeng/fix-secret-volume-update

Conversation

@smzeng
Copy link
Member

@smzeng smzeng commented Oct 2, 2023


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

Related command

az containerapp update

fixes bug for using the update command to mount a secret volume, checks for if volume is null since volume is now a NoneType object and mounts volumeMount as an array

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@azure-client-tools-bot-prd
Copy link

Hi @smzeng,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Oct 2, 2023

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@yonzhan
Copy link
Collaborator

yonzhan commented Oct 2, 2023

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

@smzeng smzeng changed the title Stacyzeng/fix secret volume update az containerapp update --secret-volume-mount fix appending to NoneType object bug Oct 2, 2023
Copy link

@pagariyaalok pagariyaalok left a comment

Choose a reason for hiding this comment

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

:shipit:

@smzeng
Copy link
Member Author

smzeng commented Oct 2, 2023

@yonzhan this has been reviewed by the ACA team and ready for review from the CLI team

0.3.41
++++++
* 'az containerapp up/create': enable support for no Dockerfile cases with --repo
* 'az containerapp update': fix bug for mounting secret volumes using --secret-volume-mount
Copy link
Contributor

@Greedygre Greedygre Oct 3, 2023

Choose a reason for hiding this comment

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

please add description in upcoming section.
The version 0.3.41 has been released, you cannot modify it's history section.

Copy link
Contributor

Choose a reason for hiding this comment

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

Done!

@Greedygre
Copy link
Contributor

Recommend PR title:

az containerapp update: --secret-volume-mount fix appending to NoneType object bug

@Greedygre
Copy link
Contributor

As we have the same command and feature in Azure-cli, please fix in https://github.com/Azure/azure-cli/tree/dev/src/azure-cli/azure/cli/command_modules/containerapp too.

@Juancpani
Copy link
Contributor

Recommend PR title:

az containerapp update: --secret-volume-mount fix appending to NoneType object bug

I sadly don't have the ability to change the title and Stacy is OOF, next time though.

@Greedygre
Copy link
Contributor

Hi @zhoxing-ms
Could you please help to review this PR? Thanks.

@AllowLargeResponse(8192)
@ResourceGroupPreparer(location="northcentralus")
def test_container_app_mount_secret_update_e2e(self, resource_group):
import requests
Copy link
Member

@wangzelin007 wangzelin007 Oct 8, 2023

Choose a reason for hiding this comment

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

Why is the import requests needed here?

Copy link
Contributor

Choose a reason for hiding this comment

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

I will remove unused import in PR: #6807

@wangzelin007 wangzelin007 changed the title az containerapp update --secret-volume-mount fix appending to NoneType object bug [containerapp] Fix az containerapp update --secret-volume-mount appending to NoneType object bug Oct 8, 2023
@wangzelin007 wangzelin007 merged commit cd01727 into Azure:main Oct 8, 2023
scrappywyrm pushed a commit to scrappywyrm/azure-cli-extensions that referenced this pull request Oct 16, 2023
…ending to NoneType object bug (Azure#6821)

* fix null volumeMounts issue

* update test

* update history.rst file

* Update HISTORY.rst

---------

Co-authored-by: Stacy Zeng <stacyzeng@microsoft.com>
Co-authored-by: Juan Paniagua <juancpani@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot ContainerApp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants