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

Add Maintenance Config Support #8190

Merged
merged 23 commits into from
Nov 12, 2024
Merged

Conversation

p-bouchon
Copy link
Contributor


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

Related command

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

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.

Copy link

azure-client-tools-bot-prd bot commented Oct 23, 2024

⚠️Azure CLI Extensions Breaking Change Test
⚠️containerapp
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd containerapp env maintenance-config sub group containerapp env maintenance-config added

Copy link

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

@yonzhan
Copy link
Collaborator

yonzhan commented Oct 23, 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

github-actions bot commented Oct 23, 2024

Hi @p-bouchon

Release Suggestions

Module: containerapp

  • Update VERSION to 1.0.0b5 in src/containerapp/setup.py

Notes

@yonzhan yonzhan requested review from zhoxing-ms and yanzhudd and removed request for jsntcy and kairu-ms October 23, 2024 23:58
@yonzhan yonzhan assigned zhoxing-ms and unassigned kairu-ms Oct 23, 2024
src/containerapp/HISTORY.rst Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/_clients.py Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/_clients.py Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/_help.py Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/_help.py Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/_params.py Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/_params.py Outdated Show resolved Hide resolved
examples:
- name: Show Planned Maintenance
text: |
az containerapp env maintenance-config show --env-name myEnv -g MyResourceGroup
Copy link
Contributor

@Greedygre Greedygre Nov 7, 2024

Choose a reason for hiding this comment

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

Please update the --environment, it still --env-name

@Greedygre
Copy link
Contributor

Hi @p-bouchon

When I tracked whether some comments were fixed, I found that they were not processed but marked as resolved.
For example:
#8190 (comment)
#8190 (comment)
image

Please confirm under these comments that they have been fixed or reply that they may not need to be addressed.
Thanks.

@Greedygre
Copy link
Contributor

Hi @Juliehzl
This PR LGTM, @p-bouchon seems addressed and replied the comments, can you review and approve it? Thanks.

@Greedygre
Copy link
Contributor

ni:
Recommend title:
[Containerapp] az containerapp env maintenance-config: Support Add, Update, Show, Remove

@Greedygre
Copy link
Contributor

Hi @Juliehzl

This PR LGTM. Could you take a look again and check your comments addressed?

@yanzhudd
Copy link
Contributor

It looks good to me. After Juliehzl signs off, I'll merge it.



# maintenance config
def add_maintenance_config(cmd, resource_group_name, env_name, duration, start_hour_utc, weekday):
Copy link
Contributor

Choose a reason for hiding this comment

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

Will you support customized name in the future? Current design is not very flexible for extensibility. Consider adding --name support for your commands with default value = "default" which will be extensible in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @Juliehzl

#8190 (comment)

only one maintenance config of name "default" is allowed.
If we want to support name in the future, we can add name in that time. If we add it now, it will be exposed to customer.

Copy link
Contributor

@Greedygre Greedygre Nov 12, 2024

Choose a reason for hiding this comment

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

@p-bouchon please correct me if I am wrong

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We currently have no plans to allow for non default names for maintenance configuration. If any were to be added, they would be specific non-customizable names to specify upgrades on specific aspects of the service

@yanzhudd yanzhudd merged commit 107fb34 into Azure:main Nov 12, 2024
21 checks passed
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.

9 participants