Werk #15618: KUBE: Trim Trailing Slash in Configured URLs

Component Checks & agents
Title KUBE: Trim Trailing Slash in Configured URLs
Date May 25, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This Werk is relevant to users, whom create a new Kubernetes rule.

With this change, one trailing slash will be removed from endpoints. This affects both API server connection and the data collection from the collectors. Specifically, previously specifying the URL

https://<control plane ip>:443/

results in an API call to

https://<control plane ip>:443//version

But now it results in a call to

https://<control plane ip>:443/version

With the new change, specifying

https://<control plane ip>:443//

will results in the behaviour of calling

https://<control plane ip>:443//version

Old configurations are migrated to match the new calling convention. Thus, existing rules are unaffected. Note, this Werk does not implement RFC 3986 URL joining.

To the list of all Werks