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

{AKS} Remove the error prompt about "no argument specified" when --enable-workload-identity=False is specified #5723

Merged

Conversation

FumingZhang
Copy link
Member


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

Remove the error prompt about "no argument specified" when --enable-workload-identity=False is specified.

Related command

az aks update --enable-workload-identity=False

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.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

@ghost ghost requested review from zhoxing-ms and yanzhudd January 4, 2023 07:00
@ghost ghost assigned zhoxing-ms Jan 4, 2023
@ghost ghost added this to the Jan 2023 (2023-02-07) milestone Jan 4, 2023
@ghost ghost added the Auto-Assign Auto assign by bot label Jan 4, 2023
@ghost ghost requested a review from yonzhan January 4, 2023 07:00
@ghost ghost added the AKS label Jan 4, 2023
@@ -312,7 +312,7 @@ def load_arguments(self, _):
c.argument('enable_vmss', action='store_true', help='To be deprecated. Use vm_set_type instead.', deprecate_info=c.deprecate(redirect='--vm-set-type', hide=True))
c.argument('zones', zones_type, options_list=['--zones', '-z'], help='Space-separated list of availability zones where agent nodes will be placed.')
c.argument('ppg')
c.argument('enable_encryption_at_host', arg_type=get_three_state_flag(), help='Enable EncryptionAtHost.')
c.argument('enable_encryption_at_host', action='store_true')
Copy link
Member

Choose a reason for hiding this comment

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

why remove the help message?

Copy link
Member Author

Choose a reason for hiding this comment

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

The help information corresponding to this option has been written in a separate _help.py file, so remove duplicates here.

Copy link
Member Author

Choose a reason for hiding this comment

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

The declaration of this option in azure-cli/acs is an ordinary bool flag, and this option does not support update. So remove the confusing three state flag.

Copy link
Contributor

@zhoxing-ms zhoxing-ms Jan 6, 2023

Choose a reason for hiding this comment

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

@FumingZhang I'd like to confirm whether changing get_three_state_flag() to action='store_true' will cause a breaking change to users? Did any users use --enable-encryption-at-host False before?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hi @zhoxing-ms, I think this wouldn't be a breaking change to users.

This property does not support being updated, it is only allowed to be used when creating an aks cluster, and the default value is false, only need to be specified when this feature needs to be enabled.

In the official doc, the example given in the guide is in the form of az aks create xxx --enable-encryption-at-host.

Besides the option is also supported in azure-cli/acs, and the same parameter declared there is a normal bool flag.

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 4, 2023

AKS

@FumingZhang FumingZhang force-pushed the fuming/fix-aks-update-prompt-0104 branch from 85af860 to ef8555c Compare January 4, 2023 12:12
@FumingZhang FumingZhang marked this pull request as ready for review January 4, 2023 12:21
Copy link
Member

@bcho bcho left a comment

Choose a reason for hiding this comment

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

minor comment issue

@zhoxing-ms zhoxing-ms merged commit 86794af into Azure:main Jan 9, 2023
@azclibot
Copy link
Collaborator

azclibot commented Jan 9, 2023

[Release] Update index.json for extension [ aks-preview ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=24774&view=results

@FumingZhang FumingZhang deleted the fuming/fix-aks-update-prompt-0104 branch February 17, 2023 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS Auto-Assign Auto assign by bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants