Skip to content
Snippets Groups Projects
Verified Commit 2ead92fe authored by Vincent Sellier's avatar Vincent Sellier
Browse files

swh/web: Fix webapp autoscaling condition

parent 08900b6d
No related branches found
No related tags found
No related merge requests found
{{- if and .Values.web.enabled -}}
{{ range $web_type, $web_config := .Values.web.deployments }}
{{- if and (or (not (hasKey $web_config "enabled")) (get $web_config "enabled")) -}}
{{- $autoScalingConfig := get $web_config "autoScaling" | default $.Values.objstorage.autoScaling -}}
{{- $autoScalingConfig := get $web_config "autoScaling" | default $.Values.web.autoScaling -}}
{{- if $autoScalingConfig -}}
{{- $autoScalingType := get $autoScalingConfig "type" | default "horizontal" -}}
{{- $autoScalerFn := eq $autoScalingType "horizontal" | ternary "swh.autoscale" "swh.keda.gunicornAutoscaler" -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment