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

[containerapp] Add new options for labels mode #8324

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Tratcher
Copy link

This adds support for the new containerapp activeRevisionMode 'labels' mode and the associated target-label option. These are used when creating or updating applications. There are also new commands to show the history of label revision assignments.

All commands except label-history already exist and need to be overridden by the extension to support these new features.

Needs tests.


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

Related command

  • 'az containerapp create': New target-label option for Labels revision mode.
  • 'az containerapp update': New revisions-mode and target-label options for Labels revision mode.
  • 'az containerapp up': New revisions-mode and target-label options for Labels revision mode.
  • 'az containerapp label-history': New list and show commands to see label revision assignment history.
  • 'az containerapp revision set-mode': New target-label option for Labels revision mode.

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? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

Copy link

Validation for Breaking Change Starting...

Thanks for your contribution!

Copy link

Hi @Tratcher,
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.

Copy link

Hi @Tratcher,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 26, 2024

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

Copy link

CodeGen Tools Feedback Collection

Thank you for using our CodeGen tool. We value your feedback, and we would like to know how we can improve our product. Please take a few minutes to fill our codegen survey

Copy link

Hi @Tratcher

Release Suggestions

Module: containerapp

  • Update VERSION to 1.1.0b2 in src/containerapp/setup.py

Notes

Comment on lines +1269 to +1271
if ingress and not target_port and target_port != 0:
target_port = 0
logger.warning("No target-port provided, defaulting to auto-detect. Try `az containerapp up --ingress %s --target-port <port>` to set a custom port.", ingress)
Copy link
Author

Choose a reason for hiding this comment

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

A small bugfix for my prior feature 😁.

@Tratcher Tratcher marked this pull request as ready for review November 28, 2024 00:05
@yanzhudd
Copy link
Contributor

Hi @Greedygre
please review this PR as well, thanks

Comment on lines +8 to +10
* 'az containerapp create': New target-label option for Labels revision mode.
* 'az containerapp update': New revisions-mode and target-label options for Labels revision mode.
* 'az containerapp up': New revisions-mode and target-label options for Labels revision mode.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the customer use sub command group for this property?

Copy link
Author

Choose a reason for hiding this comment

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

?

@Greedygre
Copy link
Contributor

please make sure all checks in CI passed.

If the PR is to add new feature support, please get approval from your team who could be responsible for your business logic.

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.

6 participants