|
5 | 5 | K8s Version Policy Checker (scs-v0210-v2) |
6 | 6 | https://github.com/SovereignCloudStack/standards |
7 | 7 |
|
8 | | -Return code is 0 precisely when it could be verified that the standard is satisfied. |
9 | | -Otherwise the return code is the number of errors that occurred (up to 127 due to OS |
10 | | -restrictions); for further information, see the log messages on various channels: |
11 | | - CRITICAL for problems preventing the test to complete, |
12 | | - ERROR for violations of requirements, |
13 | | - INFO for violations of recommendations, |
14 | | - DEBUG for background information and problems that don't hinder the test. |
15 | | -
|
16 | | -This script only checks one given cluster, so it doesn't check whether multiple |
17 | | -k8s branches are being offered. |
18 | | -It is determined if the version on the cluster is still inside |
19 | | -the recency window, which is determined by the standard to be 4 months |
20 | | -for minor versions (for the stable cluster) and 1 week for patch versions. |
21 | | -An exception are versions with critical CVEs, which should be replaced on |
22 | | -a shorter notice. |
| 8 | +Run testcase version-policy-check and output result to stdout. |
| 9 | +Return code will be non-zero precisely when the testcase could not |
| 10 | +be run. |
23 | 11 |
|
24 | 12 | (c) Hannes Baum <hannes.baum@cloudandheat.com>, 6/2023 |
25 | 13 | (c) Martin Morgenstern <martin.morgenstern@cloudandheat.com>, 2/2024 |
26 | 14 | (c) Matthias Büchse <matthias.buechse@cloudandheat.com>, 3/2024 |
| 15 | +(c) Matthias Büchse <matthias.buechse@alasca.cloud>, 6/2026 |
27 | 16 | SPDX-License-Identifier: CC-BY-SA-4.0 |
28 | 17 | """ |
29 | 18 |
|
|
33 | 22 | import contextlib |
34 | 23 | import getopt |
35 | 24 | import logging |
36 | | -import logging.config |
37 | 25 | import re |
38 | 26 | import sys |
39 | 27 |
|
|
0 commit comments