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] Mark "--enable-pod-security-policy" deprecated #5542

Merged
merged 1 commit into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/aks-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ To release a new version, please select a new version number (usually plus 1 to
Pending
+++++++

* Mark "--enable-pod-security-policy" deprecated

0.5.115
+++++++

Expand Down
11 changes: 6 additions & 5 deletions src/aks-preview/azext_aks_preview/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@
short-summary: Agent pool vm set type. VirtualMachineScaleSets or AvailabilitySet.
- name: --enable-pod-security-policy
type: bool
short-summary: (PREVIEW) Enable pod security policy.
short-summary: Enable pod security policy.
long-summary: --enable-pod-security-policy is deprecated. See https://aka.ms/aks/psp for details.
bingosummer marked this conversation as resolved.
Show resolved Hide resolved
- name: --node-resource-group
type: string
short-summary: The node resource group is the resource group where all customer's resources will be created in, such as virtual machines.
Expand Down Expand Up @@ -666,10 +667,12 @@
long-summary: This option will change the way how the outbound connections are managed in the AKS cluster. Default is loadbalancer, other available options are managedNATGateway, userassignedNATGateway, UDR
- name: --enable-pod-security-policy
type: bool
short-summary: (PREVIEW) Enable pod security policy.
short-summary: Enable pod security policy.
long-summary: --enable-pod-security-policy is deprecated. See https://aka.ms/aks/psp for details.
bingosummer marked this conversation as resolved.
Show resolved Hide resolved
- name: --disable-pod-security-policy
type: bool
short-summary: (PREVIEW) Disable pod security policy.
short-summary: Disable pod security policy
long-summary: PodSecurityPolicy is deprecated. See https://aka.ms/aks/psp for details.
- name: --attach-acr
type: string
short-summary: Grant the 'acrpull' role assignment to the ACR specified by name or resource ID.
Expand Down Expand Up @@ -914,8 +917,6 @@
text: az aks update --disable-cluster-autoscaler -g MyResourceGroup -n MyManagedCluster
- name: Update min-count or max-count for cluster autoscaler.
text: az aks update --update-cluster-autoscaler --min-count 1 --max-count 10 -g MyResourceGroup -n MyManagedCluster
- name: Enable pod security policy.
text: az aks update --enable-pod-security-policy -g MyResourceGroup -n MyManagedCluster
- name: Disable pod security policy.
text: az aks update --disable-pod-security-policy -g MyResourceGroup -n MyManagedCluster
- name: Update a kubernetes cluster with standard SKU load balancer to use two AKS created IPs for the load balancer outbound connection usage.
Expand Down
6 changes: 3 additions & 3 deletions src/aks-preview/azext_aks_preview/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
c.argument('enable_pod_security_policy', action='store_true', deprecate_info=c.deprecate(hide=True))
c.argument('enable_pod_identity', action='store_true')
c.argument('enable_pod_identity_with_kubenet', action='store_true')
c.argument('enable_workload_identity', arg_type=get_three_state_flag(), is_preview=True)
Expand Down Expand Up @@ -415,8 +415,8 @@ def load_arguments(self, _):
c.argument('http_proxy_config')
c.argument('load_balancer_managed_outbound_ipv6_count', type=int)
c.argument('outbound_type', arg_type=get_enum_type(outbound_types))
c.argument('enable_pod_security_policy', action='store_true')
c.argument('disable_pod_security_policy', action='store_true')
c.argument('enable_pod_security_policy', action='store_true', deprecate_info=c.deprecate(hide=True))
c.argument('disable_pod_security_policy', action='store_true', is_preview=True)
c.argument('enable_pod_identity', action='store_true')
c.argument('enable_pod_identity_with_kubenet', action='store_true')
c.argument('disable_pod_identity', action='store_true')
Expand Down