fix: correct scope for capability checks
This commit is contained in:
3 files changed
+5
-3
No files matched your search
@@ -1,3 +1,4 @@
|
||||
{{- if .Capabilities.APIVersions.Has "http.keda.sh/v1alpha1" -}}
|
||||
{{- range $processName, $config := .Values.processes }}
|
||||
# Skip cron jobs
|
||||
{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }}
|
||||
@@ -5,7 +6,6 @@
|
||||
{{- end }}
|
||||
|
||||
{{- if and (eq $processName "web") (and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda"))) }}
|
||||
{{- if .Capabilities.APIVersions.Has "http.keda.sh/v1alpha1" -}}
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
|
||||
Reference in new issue
Block a user