Skip to content

Commit

Permalink
[AKS] update idletimeout to 100 minutes (#2539)
Browse files Browse the repository at this point in the history
* update idletimeout to 100 minutes

* bump version

* revert version
  • Loading branch information
gtracer authored Nov 9, 2020
1 parent df8e166 commit 145619a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/aks-preview/azext_aks_preview/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
- name: --load-balancer-idle-timeout
type: int
short-summary: Load balancer idle timeout in minutes.
long-summary: Desired idle timeout for load balancer outbound flows, default is 30 minutes. Please specify a value in the range of [4, 120].
long-summary: Desired idle timeout for load balancer outbound flows, default is 30 minutes. Please specify a value in the range of [4, 100].
- name: --outbound-type
type: string
short-summary: How outbound traffic will be configured for a cluster.
Expand Down Expand Up @@ -381,7 +381,7 @@
- name: --load-balancer-idle-timeout
type: int
short-summary: Load balancer idle timeout in minutes.
long-summary: Desired idle timeout for load balancer outbound flows, default is 30 minutes. Please specify a value in the range of [4, 120].
long-summary: Desired idle timeout for load balancer outbound flows, default is 30 minutes. Please specify a value in the range of [4, 100].
- name: --enable-pod-security-policy
type: bool
short-summary: (PREVIEW) Enable pod security policy.
Expand Down
4 changes: 2 additions & 2 deletions src/aks-preview/azext_aks_preview/_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ def validate_load_balancer_outbound_ports(namespace):
def validate_load_balancer_idle_timeout(namespace):
"""validate load balancer profile idle timeout"""
if namespace.load_balancer_idle_timeout is not None:
if namespace.load_balancer_idle_timeout < 4 or namespace.load_balancer_idle_timeout > 120:
raise CLIError("--load-balancer-idle-timeout must be in the range [4,120]")
if namespace.load_balancer_idle_timeout < 4 or namespace.load_balancer_idle_timeout > 100:
raise CLIError("--load-balancer-idle-timeout must be in the range [4,100]")


def validate_nodepool_tags(ns):
Expand Down

0 comments on commit 145619a

Please sign in to comment.