-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Depricate ingress scale settings #9026
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
Changes from all commits
92e8976
da55059
279b2fd
f6820b8
69f99ac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3844,21 +3844,17 @@ def show_environment_premium_ingress(cmd, name, resource_group_name): | |
| handle_raw_exception(e) | ||
|
|
||
|
|
||
| def add_environment_premium_ingress(cmd, name, resource_group_name, workload_profile_name, min_replicas, max_replicas, termination_grace_period=None, request_idle_timeout=None, header_count_limit=None, no_wait=False): | ||
| def add_environment_premium_ingress(cmd, name, resource_group_name, workload_profile_name, min_replicas=None, max_replicas=None, termination_grace_period=None, request_idle_timeout=None, header_count_limit=None, no_wait=False): | ||
| _validate_subscription_registered(cmd, CONTAINER_APPS_RP) | ||
|
|
||
| try: | ||
| ManagedEnvironmentPreviewClient.show(cmd, resource_group_name, name) | ||
| env_patch = {} | ||
| ingress_config = {} | ||
| safe_set(env_patch, "properties", "ingressConfiguration", value=ingress_config) | ||
| scale = {} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pls keep the code until parameter is removed. Currently they are in deprecated mode and hidden to customers.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The control plane change has already fully deployed, the properties are ignored and there's no reason to send them. |
||
| ingress_config["scale"] = scale | ||
|
|
||
| # Required | ||
| ingress_config["workloadProfileName"] = workload_profile_name | ||
| scale["minReplicas"] = min_replicas | ||
| scale["maxReplicas"] = max_replicas | ||
| # Optional, remove if None | ||
| ingress_config["terminationGracePeriodSeconds"] = termination_grace_period | ||
| ingress_config["requestIdleTimeout"] = request_idle_timeout | ||
|
|
@@ -3885,16 +3881,9 @@ def update_environment_premium_ingress(cmd, name, resource_group_name, workload_ | |
| ManagedEnvironmentPreviewClient.show(cmd, resource_group_name, name) | ||
| env_patch = {} | ||
| ingress_config = {} | ||
| scale = {} | ||
|
|
||
| if workload_profile_name is not None: | ||
| ingress_config["workloadProfileName"] = workload_profile_name | ||
| if min_replicas is not None: | ||
| ingress_config["scale"] = scale | ||
| scale["minReplicas"] = min_replicas | ||
| if max_replicas is not None: | ||
| ingress_config["scale"] = scale | ||
| scale["maxReplicas"] = max_replicas | ||
| if termination_grace_period is not None: | ||
| ingress_config["terminationGracePeriodSeconds"] = termination_grace_period | ||
| if request_idle_timeout is not None: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.