Skip to content

Deprecate type setting CPU/MEM and tls setting IBMMQ#6698

Merged
wozniakjan merged 10 commits intokedacore:mainfrom
rickbrouwer:deprecations
Jun 15, 2025
Merged

Deprecate type setting CPU/MEM and tls setting IBMMQ#6698
wozniakjan merged 10 commits intokedacore:mainfrom
rickbrouwer:deprecations

Conversation

@rickbrouwer
Copy link
Member

@rickbrouwer rickbrouwer commented Apr 8, 2025

Remove Prometheus webhook prommetrics deprecations
Remove the type setting in CPU Memory scaler
Remove tls setting in the IBM MQ scaler
Update typed_config conform governance deprecations

Checklist

Fixes #6348 #6095
Docs: kedacore/keda-docs#1564
Relates to #2844

Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
@rickbrouwer rickbrouwer requested a review from a team as a code owner April 8, 2025 14:44
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
@rickbrouwer rickbrouwer changed the title Deprecations Deprecate type setting CPU/MEM and tls setting IBMMQ Apr 8, 2025
@rickbrouwer rickbrouwer marked this pull request as draft April 8, 2025 20:01
@rickbrouwer rickbrouwer marked this pull request as ready for review April 9, 2025 13:25
Copy link
Member

@JorTurFer JorTurFer left a 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 :)

@rickbrouwer rickbrouwer force-pushed the deprecations branch 2 times, most recently from f650e50 to 8ea97cd Compare April 22, 2025 05:49
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

Nice job!

@rickbrouwer
Copy link
Member Author

rickbrouwer commented Jun 15, 2025

/run-e2e sequential|cpu|memory|ibm
Update: You can check the progress here

@rickbrouwer
Copy link
Member Author

rickbrouwer commented Jun 15, 2025

/run-e2e sequential|cpu|memory|ibm
Update: You can check the progress here

Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
@rickbrouwer
Copy link
Member Author

rickbrouwer commented Jun 15, 2025

/run-e2e internal|sequential|cpu|memory|ibm
Update: You can check the progress here

@wozniakjan wozniakjan requested review from Copilot and wozniakjan June 15, 2025 19:46
Copy link
Contributor

Copilot AI left a 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 to metricType
  • 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))

@wozniakjan wozniakjan merged commit e25ab90 into kedacore:main Jun 15, 2025
25 checks passed
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)
Copy link
Member

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

@rickbrouwer rickbrouwer deleted the deprecations branch June 16, 2025 05:03
dpochopsky pushed a commit to dpochopsky/keda that referenced this pull request Sep 12, 2025
* feat(ibmmq): Deprecate TLS setting

Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>

* Update typed_config conform governance deprecations

Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>

* Deprecate type setting

Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>

* Remove webhook prommetrics deprecations

Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>

* Update changelog

Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>

* Update

Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>

* Update e2e tests

Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>

---------

Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
Signed-off-by: David Pochopsky <david.pochopsky@united.com>
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.

4 participants