-
Notifications
You must be signed in to change notification settings - Fork 5
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
BYO scaledobject #31
BYO scaledobject #31
Conversation
@skonto: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
test/e2e/autoscale_custom_test.go
Outdated
@@ -82,7 +82,7 @@ func setupCustomHPASvc(t *testing.T, metric string, target int) *TestContext { | |||
autoscaling.MinScaleAnnotationKey: "1", | |||
autoscaling.MaxScaleAnnotationKey: fmt.Sprintf("%d", int(maxPods)), | |||
autoscaling.WindowAnnotationKey: "20s", | |||
resources2.KedaAutoscaleAnotationPrometheusQuery: "sum(rate(http_requests_total{}[1m]))", | |||
resources2.KedaAutoscaleAnotationPrometheusQuery: fmt.Sprintf("sum(rate(http_requests_total{namespace='%s'}[1m]))", test.ServingFlags.TestNamespace), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be specific to the namespace where metrics are emitted.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #31 +/- ##
==========================================
- Coverage 84.10% 83.28% -0.82%
==========================================
Files 8 8
Lines 346 359 +13
==========================================
+ Hits 291 299 +8
- Misses 39 43 +4
- Partials 16 17 +1 ☔ View full report in Codecov by Sentry. |
const allActivators = 0 | ||
const ( | ||
allActivators = 0 | ||
KedaAutoscaleAnotationAutocreate = autoscaling.GroupName + "/scaled-object-auto-create" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KedaAutoscaleAnnotationAutocreate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the same spelling error elsewhere. I am going to fix it.
config/config.yaml
Outdated
# have their Knative service annotation `autoscaling.knative.dev/scaled-object-auto-create` set to true. | ||
# By setting `autoscaling.knative.dev/scaled-object-auto-create` at the Knative Service level you can bypass | ||
# this configuration and by setting to false you can bring your own scaled object. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably no newline here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only nit stuff
@ReToCode I think this is ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ReToCode, skonto The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
/kind
Fixes #13
Release Note