You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add standard for CNCF Kubernetes conformance (#1154)
* add draft for new standard scs-0201-v1
* fix Markdown reference link
* Revert "fix Markdown reference link"
* fix Markdown link
* keep reference to CNCF
* remove misleading reference to decision record
* add reference to test configuration
* remove default value
* remove yet another default value
* fix wording
* update link
---------
Signed-off-by: Marvin Frommhold <depressiveRobot@users.noreply.github.com>
SCS-0201 describes conformance testing of Kubernetes environments using the upstream CNCF Kubernetes e2e suite.
8
+
---
9
+
10
+
## Introduction
11
+
12
+
Interoperability, consistency, and traceability play a crucial role in the deployment and use of a Kubernetes environment. Testing ensures this conformance across different Kubernetes environments.
13
+
14
+
The SCS project always intends to reuse existing standards whenever possible. For this reason, the upstream test suite of the [Certified Kubernetes Conformance Program](https://github.com/cncf/k8s-conformance) is used for conformance testing.
15
+
16
+
## Motivation
17
+
18
+
As an operator as well as an user, I want to check the conformance of a Kubernetes environment in order to ensure the interoperability, consistency, and traceability of it.
19
+
20
+
## Regulations
21
+
22
+
The conformance testing is performed as part of the [SCS compliance check suite](https://github.com/SovereignCloudStack/standards/tree/main/Tests) executing the standard set of conformance tests defined by the `[Conformance]` tag in the [Kubernetes e2e suite](https://github.com/kubernetes/kubernetes/tree/master/test/e2e). All conformance tests MUST be passed successfully.
23
+
24
+
We allow exceptions from the Kubernetes e2e tests if it is reasonable, e.g. [bugs in certain tests](https://github.com/SovereignCloudStack/standards/blob/74a3197d37cbfae3f8f0ed45644e6611186639da/Tests/kaas/scs-sonobuoy-config.yaml#L12). Please note that exceptions may be added and/or removed in such reasonable cases and thereby allowing the standard to be updated without the need for a new version of it. If the reason for an exception goes away, so does the exception and it will therefore be removed.
25
+
26
+
The exceptions are listed under the key `okToFail` in
title: "CNCF Kubernetes conformance: Implementation and Testing Notes"
3
+
type: Supplement
4
+
track: KaaS
5
+
supplements:
6
+
- scs-0201-v1-cncf-conformance.md
7
+
---
8
+
9
+
## Implementation notes
10
+
11
+
The actual execution of the conformance tests is performed by the [SCS compliance check suite](https://github.com/SovereignCloudStack/standards/tree/main/Tests) using [Sonobuoy](https://sonobuoy.io).
12
+
13
+
## Automated tests
14
+
15
+
The script [`run_sonobuoy.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/kaas/sonobuoy_handler/run_sonobuoy.py) connects to an existing K8s cluster and handles both the execution of Sonobuoy and the generation of the results for a test report. See [`scs-compatible-kaas.yaml`](https://github.com/SovereignCloudStack/standards/blob/c1e9a1b761a0bb201e80d9207f4a1dd0a68ff57f/Tests/scs-compatible-kaas.yaml#L15) for the test configuration.
@click.option("-r", "--result_dir_name", "result_dir_name", type=str, default="sonobuoy_results", help="directory name to store results at",)
22
22
@click.option("-c", "--check", "check_name", type=str, default="sonobuoy_executor", help="this MUST be the same name as the id in 'scs-compatible-kaas.yaml'",)
23
-
@click.option("--scs-sonobuoy-config", "scs_sonobuoy_config_yaml", type=click.Path(exists=True), default="kaas/sonobuoy-config.yaml", help="Configuration for Sonobuoy (yaml format)")
23
+
@click.option("--scs-sonobuoy-config", "scs_sonobuoy_config_yaml", required=True, type=click.Path(exists=True), help="Configuration for Sonobuoy (YAML format)")
0 commit comments