Skip to content

Commit

Permalink
Validate autoscaling mandatory fields when it is enabled (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
raminqaf authored Aug 8, 2024
1 parent 935b61d commit 6c1db53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion charts/streams-app/templates/scaled-object.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{{ if .Values.autoscaling.enabled }}
{{- $root := . -}}
{{- if not (and .Values.kafka.applicationId .Values.autoscaling.lagThreshold) }}
{{- fail "When autoscaling is enabled, you must set both .Values.kafka.applicationId and .Values.autoscaling.lagThreshold" }}
{{- end }}
{{- $root := . -}}
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
Expand Down

0 comments on commit 6c1db53

Please sign in to comment.