Skip to content
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

Support KEDA's ignoreNullValues field. #7471

Merged
merged 3 commits into from
Feb 26, 2024
Merged

Conversation

pstibrany
Copy link
Member

@pstibrany pstibrany commented Feb 26, 2024

What this PR does

This PR adds support for KEDA's ignoreNullValues option for Prometheus scalers. This defaults to "true" (ie. KEDA returns 0 if query produces no results), and can be set to "false" to make KEDA return errors instead. (KEDA expects field value to be string, so our jsonnet converts boolean to string).

Checklist

  • Tests updated.
  • [na] Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • [na] about-versioning.md updated with experimental features.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
@pstibrany pstibrany requested a review from a team as a code owner February 26, 2024 14:59
Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
@pstibrany pstibrany changed the title support-ignore-null-values Support KEDA's ignoreNullValues field. Feb 26, 2024
Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
@pstibrany pstibrany enabled auto-merge (squash) February 26, 2024 15:10
@pstibrany pstibrany merged commit 418025d into main Feb 26, 2024
27 checks passed
@pstibrany pstibrany deleted the support-ignore-null-values branch February 26, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants