Skip to content

Commit

Permalink
Mark PodSecurityPolicy deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
bingosummer committed Nov 15, 2022
1 parent 745f160 commit c2f52cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
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.
- 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.
- 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

0 comments on commit c2f52cc

Please sign in to comment.