Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 116c6386be5b59d30a0c3530136051652b132184
https://github.com/tribe29/checkmk/commit/116c6386be5b59d30a0c3530136051652…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-04-21 (Thu, 21 Apr 2022)
Changed paths:
A .werks/13804
M cmk/base/plugins/agent_based/utils/kube.py
M tests/unit/cmk/base/plugins/agent_based/utils/test_kube.py
Log Message:
-----------
13804 FIX KUBE: add cmk/kubernetes/label/ to host label keys
This fix affects users who use Kubernetes host labels.
Previously, labels which are set by Kubernetes would be mapped
one-to-one to Checkmk labels. This would mean that setting labels in
Kubernetes could overwrite Checkmk labels, which should not be
overwritten. For instance, setting the label
<tt>cmk/os_family=something</tt> would incorrectly set the corresponding
Checkmk label to <tt>cmk/os_family:something</tt>. With this werk,
Checkmk labels are prefixed with <tt>cmk/kubernetes/label/</tt>. For
example, Checkmk now sets the aforementioned label to
<tt>cmk/kubernetes/label/cmk/os_family:something</tt>.
User-defined rules with old host labels need to be updated.
Change-Id: I26a3c98120fdf2ea12aa1bc8023e1f72aad88cee