Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for k8s version recency (#288) #318

Merged
merged 2 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Standards/scs-0210-v1-k8s-new-version-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ All important documents regarding versioning, releases, etc. for the official Ku

## Conformance Tests

TBD
The conformance test is written in the 'k8s-version-recency-check.py' script. The script requires the path to a valid
kubeconfig file, which should describe the k8s cluster under test. This can either be done by creating a config from
the also provided 'config.yaml.template' or by calling the test script with its cli arguments.
Empty file removed Tests/kaas/.gitkeep
Empty file.
24 changes: 24 additions & 0 deletions Tests/kaas/k8s-version-recency/config.yaml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Configuration file for the K8s Version Recency Test

logging:
level: INFO
version: 1
disable_existing_loggers: False
formatters:
k8s-version-recency-check:
format: "%(levelname)s: %(message)s"
handlers:
console:
class: logging.StreamHandler
formatter: k8s-version-recency-check
stream: ext://sys.stdout
file:
class: logging.handlers.WatchedFileHandler
formatter: k8s-version-recency-check
filename: MY-LOG-FILE-NAME.log
root: # Configuring the default (root) logger is highly recommended
handlers: [console]
loggers:
k8s-version-recency-check:
handlers: [console, file]
propagate: no
Loading