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} Add target for enable_pod_security_policy deprecation information #5550

Merged
merged 1 commit into from
Nov 16, 2022

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 zhoxing-ms and wangzelin007 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

@@ -315,7 +315,7 @@ def load_arguments(self, _):
c.argument('pod_cidrs')
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