Skip to content

Conversation

@bingosummer
Copy link
Member

@bingosummer bingosummer commented Nov 15, 2022

Fix Azure/azure-cli#24647

With the fix, the warning message will be Option '--enable-pod-security-policy' has been deprecated and will be removed in a future release..

@ghost ghost requested review from wangzelin007 and zhoxing-ms November 15, 2022 06:03
@ghost ghost assigned zhoxing-ms Nov 15, 2022
@ghost ghost added this to the Nov 2022 (2022-12-06) milestone Nov 15, 2022
@ghost ghost added the Auto-Assign Auto assign by bot label Nov 15, 2022
@ghost ghost requested a review from yonzhan November 15, 2022 06:03
@ghost ghost added the AKS label Nov 15, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 15, 2022

AKS

c.argument('service_cidrs')
c.argument('load_balancer_managed_outbound_ipv6_count', type=int)
c.argument('enable_pod_security_policy', action='store_true', deprecate_info=c.deprecate(hide=True))
c.argument('enable_pod_security_policy', action='store_true', deprecate_info=c.deprecate(target='--enable-pod-security-policy', hide=True))
Copy link
Member

Choose a reason for hiding this comment

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

From doc, it's not necessary?

Copy link
Member Author

@bingosummer bingosummer Nov 15, 2022

Choose a reason for hiding this comment

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

Not necessary, but:

Without the target, the warning message is Argument 'enable_pod_security_policy' has been deprecated and will be removed in a future release..

With the target, the warning message is Argument '--enable-pod-security-policy' has been deprecated and will be removed in a future release.. I think, this message is more clear.

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

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

LGTM

@zhoxing-ms zhoxing-ms merged commit 1c98cce into Azure:main Nov 16, 2022
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.

The argument name in the deprecation warning message should use the format "--foo-bar" instead of "foo_bar"

4 participants