Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 6b537f0e93dc00b38110f6a0e44277bcef122876
https://github.com/tribe29/checkmk/commit/6b537f0e93dc00b38110f6a0e44277bce…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-07-27 (Wed, 27 Jul 2022)
Changed paths:
M cmk/special_agents/utils_kubernetes/transform.py
Log Message:
-----------
transform: fix broken if-branch
api.PodSpec cannot be initialized without the missing fields.
However, the corresponding if-branch would never be entered.
The pydantic.mypy plugin can detect this issue (see ticket).
CMK-10333
Change-Id: Ifd5fe0eb4f9d1d1a1839848114f1c331b2e749b6
Commit: 490d3d3d8e989b5e44eafed01ab8bc0690d01057
https://github.com/tribe29/checkmk/commit/490d3d3d8e989b5e44eafed01ab8bc069…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-07-27 (Wed, 27 Jul 2022)
Changed paths:
M cmk/special_agents/utils_kubernetes/transform_json.py
Log Message:
-----------
transform_json: use NotRequired
PEP 589 specified inheritance as the way to achieve a mix of optional
and mandatory keys in a TypedDict. However, with python 3.11 a newer
syntax is becoming available, which avoids defining multiple TypedDicts'
and therefore makes it possible to keys belonging to one definition. We
can access this new syntax via typing_extensions.
Change-Id: Ie3a754c9fb65d48d59fd4af37f521b4e0e56fa3b
Compare:
https://github.com/tribe29/checkmk/compare/59b740bde1e4...490d3d3d8e98