-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Deprecate type setting CPU/MEM and tls setting IBMMQ #6698
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
Conversation
Signed-off-by: rickbrouwer <[email protected]>
Signed-off-by: rickbrouwer <[email protected]>
Signed-off-by: rickbrouwer <[email protected]>
Signed-off-by: Rick Brouwer <[email protected]>
Signed-off-by: Rick Brouwer <[email protected]>
56d69e0
to
70d10a1
Compare
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.
Nice job! just some nits inline :)
f650e50
to
8ea97cd
Compare
Signed-off-by: Rick Brouwer <[email protected]>
8ea97cd
to
1be0751
Compare
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.
Nice job!
/run-e2e sequential|cpu|memory|ibm |
ae12a0c
to
d995208
Compare
/run-e2e sequential|cpu|memory|ibm |
Signed-off-by: Rick Brouwer <[email protected]>
9fa2688
to
39510f0
Compare
/run-e2e internal|sequential|cpu|memory|ibm |
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.
Pull Request Overview
This PR removes legacy type
and tls
settings in favor of metricType
and unsafeSsl
, cleans up deprecated Prometheus webhook metrics, and updates the typed‐config handling for deprecation notices.
- Switch CPU/Memory scaler tests from
type
tometricType
- Update
typed_config
to emit errors or events on deprecated parameters and adjust corresponding tests - Remove deprecated Prometheus webhook counters and deprecate
tls
in the IBM MQ scaler
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
tests/scalers/memory/memory_test.go | Replace type metadata with metricType in memory scaler tests |
tests/scalers/cpu/cpu_test.go | Replace type metadata with metricType in CPU scaler tests |
tests/internals/scaled_object_validation/scaled_object_validation_test.go | Update validation tests to use metricType instead of type |
pkg/scalers/scalersconfig/typed_config_test.go | Refactor deprecation tests for deprecated and deprecatedAnnounce |
pkg/scalers/scalersconfig/typed_config.go | Change deprecation logic to return errors/events with new formatting |
pkg/scalers/ibmmq_scaler.go | Deprecate tls field and remove its backward‐compatibility mapping |
pkg/scalers/cpu_memory_scaler.go | Deprecate type field in metadata and remove legacy parsing |
pkg/metricscollector/webhook/webhook_prommetrics.go | Remove old Prometheus webhook deprecation counters |
CHANGELOG.md | Add entries for removed deprecations and breaking changes |
Comments suppressed due to low confidence (2)
pkg/scalers/scalersconfig/typed_config.go:201
- Add a newline when printing the deprecation message (e.g., use fmt.Println or append "\n") so each log entry appears on its own line.
fmt.Print(message)
CHANGELOG.md:93
- [nitpick] Consider rephrasing this entry for clarity and consistency with other items, for example: 'Remove deprecations for Prometheus webhook "prommetrics" metrics'.
- **General**: Remove Prometheus webhook prommetrics deprecations ([#6698](https://github.com/kedacore/keda/pull/6698))
} | ||
if exists && params.DeprecatedAnnounce != "" { | ||
if sc.Recorder != nil { | ||
message := fmt.Sprintf("Scaler %s info: %s", sc.TriggerType, params.DeprecatedAnnounce) | ||
message := fmt.Sprintf("scaler %s info: %s", sc.TriggerType, params.DeprecatedAnnounce) | ||
fmt.Print(message) |
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.
Note for myself, I must have forgotten this in an earlier commit, I should check it
Remove Prometheus webhook prommetrics deprecations
Remove the
type
setting in CPU Memory scalerRemove
tls
setting in the IBM MQ scalerUpdate
typed_config
conform governance deprecationsChecklist
Fixes #6348 #6095
Docs: kedacore/keda-docs#1564
Relates to #2844