Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 0f035f87c62414a6cecbb82c98e960821453d58d
https://github.com/tribe29/checkmk/commit/0f035f87c62414a6cecbb82c98e960821…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M cmk/special_agents/utils_kubernetes/api_server.py
Log Message:
-----------
transform: APIServer decides about queries
Previously, the __init__ methods of CoreAPI, BatchAPI and AppsAPI had
the responsibility of calling their respective query methods. Because of
this design it was impossible to select query methods individually. This
clashes with our need to select query methods based on the Kubernetes
version.
CMK-10428
Change-Id: I7fd3064d647a56b9bc90dc60c01425a5bce695e2
Commit: 3649ecf50af3bd2c77cbd1ba9947223ecacaf4a8
https://github.com/tribe29/checkmk/commit/3649ecf50af3bd2c77cbd1ba9947223ec…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M cmk/special_agents/utils_kubernetes/transform.py
Log Message:
-----------
transform: simplify parse_annotations with TypeGuard
Change-Id: Ie93cb7ee873bc7ae8a3c2620c1a2b72b04a3b4a7
Commit: a6725f3f91de241b8800756c99d7335f70569f0d
https://github.com/tribe29/checkmk/commit/a6725f3f91de241b8800756c99d7335f7…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M cmk/special_agents/utils_kubernetes/transform.py
Log Message:
-----------
transform: adapt parse_annotations
CMK-10517
Change-Id: Ic4448299e5b349c48ca80c9d3f92fb54776428b4
Commit: 302daed102bc994000c0b1e008808ef2c5fa2f8b
https://github.com/tribe29/checkmk/commit/302daed102bc994000c0b1e008808ef2c…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M cmk/special_agents/utils_kubernetes/api_server.py
Log Message:
-----------
transform: move the version query to init
Previously, the version query had to be done before any __init__ method
of BatchAPI, AppsAPI and CoreAPI was called, see change
I7fd3064d647a56b9bc90dc60c01425a5bce695e2
Now we can simplify this.
Change-Id: I53a231b95169500097e3a4dbea8bbff816105ac6
Commit: abdcbdc5708eff005d8073489b78bd35b604983c
https://github.com/tribe29/checkmk/commit/abdcbdc5708eff005d8073489b78bd35b…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M cmk/special_agents/utils_kubernetes/api_server.py
Log Message:
-----------
transform: simplify _get_healthz
Change-Id: Ibac627c2eba87a12d94ef0696c043bd271c561f8
Commit: 99135722ac70fd96e7b027f5c6719157a02141ff
https://github.com/tribe29/checkmk/commit/99135722ac70fd96e7b027f5c6719157a…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M cmk/special_agents/utils_kubernetes/transform.py
Log Message:
-----------
transform: remove unnecessary Any
Change-Id: Ib0b1f2cab63e52857b4024c409f8b7e559f9c1c2
Commit: 0420b91d42e76e84b3ddf4848c5b5e049cda1fa7
https://github.com/tribe29/checkmk/commit/0420b91d42e76e84b3ddf4848c5b5e049…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M cmk/special_agents/utils_kubernetes/api_server.py
M cmk/special_agents/utils_kubernetes/schemata/api.py
M cmk/special_agents/utils_kubernetes/transform.py
Log Message:
-----------
transform: parse object_references in dedicated function
Previously, _match_controllers would directly handle the client objects.
This is a problem, because the client objects are not available in some
cases. Now there are dedicated pydantic models, which serve as an
abstraction between the _match_controllers and the Kubernetes API (much
like we have everywhere else).
CMK-10428
Change-Id: Ifa16cee0e34f28a1857b1a53f7c98d5738a864ce
Commit: beba24e176717afdc03c13e6861a7b7cf4938bd4
https://github.com/tribe29/checkmk/commit/beba24e176717afdc03c13e6861a7b7cf…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M cmk/special_agents/utils_kubernetes/api_server.py
Log Message:
-----------
api_server: introduce querying of StatefulSet json
CMK-10428
Change-Id: I461468094ca7a865026108f4496cf266bd6ff4da
Commit: 84cdb146493a26f2e5ca97e4a3f4c7b08cafb3b6
https://github.com/tribe29/checkmk/commit/84cdb146493a26f2e5ca97e4a3f4c7b08…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M cmk/special_agents/utils_kubernetes/api_server.py
M cmk/special_agents/utils_kubernetes/transform.py
A cmk/special_agents/utils_kubernetes/transform_any.py
A cmk/special_agents/utils_kubernetes/transform_json.py
Log Message:
-----------
transform: introduce json parsing for v1.23+
The Kubernetes python client v1.23 is unable to handle servers with
version v1.22 and below. For this reason we cannot upgrade the client.
However, without the upgrade, it is not possible to support features,
which have been introduced in v1.23 and above. We introduce our own JSON
parsing to cope with this issue. Intially, we only provide the parsing
for StatefulSets in order to unblock the issue in CMK-10232.
The mixing optional and required keys of TypedDicts via inheritance is
based on
https://peps.python.org/pep-0589/#totality
An alternate syntax was rejected (see same PEP).
CMK-10428
Change-Id: I347dca8b9232377bebe5710f1541dbb2ed981df1
Commit: 52870b5e159dcecc0382f145e80c73c49304f20c
https://github.com/tribe29/checkmk/commit/52870b5e159dcecc0382f145e80c73c49…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M cmk/special_agents/agent_kube.py
M cmk/special_agents/utils_kubernetes/api_server.py
M cmk/special_agents/utils_kubernetes/transform.py
Log Message:
-----------
api_server: dispatch parsers depending on version
Change-Id: I1d6ad0e64a558d8ffc1ae73adc26d257471ee0cc
Compare:
https://github.com/tribe29/checkmk/compare/79874e7ae277...52870b5e159d