Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Helm chart for Grafana Loki supporting monolithic, simple scalable,
type: application
# renovate: docker=docker.io/grafana/loki
appVersion: 3.7.1
version: 11.4.7
version: 11.4.8
kubeVersion: ">=1.25.0-0"
home: https://grafana-community.github.io/helm-charts
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/loki/templates/_keda.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
minReplicaCount: {{ $component.kedaAutoscaling.minReplicas }}
maxReplicaCount: {{ $component.kedaAutoscaling.maxReplicas }}
pollingInterval: {{ coalesce $component.kedaAutoscaling.pollingInterval .Values.defaults.kedaAutoscaling.pollingInterval }}
cooldownPeriod: {{ $component.kedaAutoscaling.cooldownPeriod }}
cooldownPeriod: {{ coalesce $component.kedaAutoscaling.cooldownPeriod .Values.defaults.kedaAutoscaling.cooldownPeriod }}
{{- with $component.kedaAutoscaling.fallback }}
fallback:
{{- toYaml . | nindent 4 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ defaults:
customHeaders: ""
# -- Interval (seconds) to poll each trigger. Overridable per component.
pollingInterval: 30
# -- Period (seconds) to wait after the last trigger reported active before scaling back to 0. Overridable per component.
cooldownPeriod: 300
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: is there an use case to set cooldownPeriod: 0

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To 0, apart from immédiate downscaling, not that I think of, but being able to change it makes sense. :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm asking here, if $component.kedaAutoscaling.cooldownPeriod is 0 (e.g. "empty"), then .Values.defaults.kedaAutoscaling.cooldownPeriod would be used. Thas why I use kindIs so often to check is the value is nun numeric, e.g. null

# -- KEDA trigger authentication settings. Ref: https://keda.sh/docs/latest/concepts/authentication/
authentication:
# -- Enable TriggerAuthentication for KEDA triggers
Expand Down
Loading