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
Copy file name to clipboardExpand all lines: docs/SchemeFileFormat.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,29 +44,29 @@ Possible entries (sources) in the list under `networkPolicyList` or `resourceLis
44
44
### <aname="queryobject"></a>Query object
45
45
Each query object instructs the tool to run a specific check on one or more sets of policies.
46
46
47
-
| Field | Description | Value |
48
-
|-------|-------------|-------|
49
-
|name |Query name|string|
50
-
|emptiness|Checks all NetworkConfigs for empty selectors/rules|list of [config set](#configsets) names|
51
-
|redundancy|Checks each set of NetworkConfigs for redundant policies and for redundant rules within each policy|list of [config set](#configsets) names|
52
-
|equivalence|Checks semantic equivalence between each pair of NetworkConfigs sets|list of [config set](#configsets) names|
53
-
|strongEquivalence|Like equivalence, but comparisons are policy-wise|list of [config set](#configsets) names|
54
-
|semanticDiff|Checks semantic diff between each pair of NetworkConfigs sets|list of [config set](#configsets) names|
55
-
|forbids|Checks whether the first set denies all connections **explicitly** allowed by the other sets|list of [config set](#configsets) names|
56
-
|permits|Checks whether the first set allows all connections **explicitly** allowed by the other sets|list of [config set](#configsets) names|
57
-
|interferes|Checks whether any set interferes with the first set|list of [config set](#configsets) names|
58
-
|pairwiseInterferes|Checks whether any two sets in the list interfere each other|list of [config set](#configsets) names|
59
-
|containment|Checks whether any set is semantically contained in the first set (does not allow additional connections)|list of [config set](#configsets) names|
60
-
|twoWayContainment|Checks what are the relations - equivalence, contains, contained, disjoint, neither - between the first set and each of the other sets|list of [config set](#configsets) names|
61
-
|disjointness|Reports pairs of policies with overlapping sets of captured pods|list of [config set](#configsets) names|
62
-
|vacuity|Checks whether the set of policies changes cluster default behavior|list of [config set](#configsets) names|
63
-
|sanity|Checks all NetworkConfigs for sanity check - includes emptiness, vacuity and redundancies|list of [config set](#configsets) names|
64
-
|allCaptured|Checks that all pods are captured by at least one NetworkPolicy|list of [config set](#configsets) names|
65
-
|connectivityMap|Reports a summary of the allowed connections in the cluster|list of [config set](#configsets) names|
66
-
|expected|The expected sum of returned results by all sub-queries in this query (a warning is issued on mismatch)|integer|
67
-
|expectedOutput|The file path of the expected output of this query (for connectivityMap or semanticDiff queries) |string|
68
-
|expectedNotExecuted|The number of input configs/config pairs that the query is not expected to be run on. Reasons for not executing the configs are listed [here](CmdLineQueriesResults.md#a-query-will-not-be-executed-when)|integer|
69
-
|outputConfiguration| A dict object with the required output configuration|[outputConfig](#outputconfig) object|
|emptiness|Checks all NetworkConfigs for empty selectors/rules|list of [config set](#configsets) names|
51
+
|redundancy|Checks each set of NetworkConfigs for redundant policies and for redundant rules within each policy|list of [config set](#configsets) names|
52
+
|equivalence|Checks semantic equivalence between each pair of NetworkConfigs sets|list of [config set](#configsets) names|
53
+
|strongEquivalence|Like equivalence, but comparisons are policy-wise|list of [config set](#configsets) names|
54
+
|semanticDiff|Checks semantic diff between each pair of NetworkConfigs sets|list of [config set](#configsets) names|
55
+
|forbids|Checks whether the first set denies all connections **explicitly** allowed by the other sets|list of [config set](#configsets) names|
56
+
|permits|Checks whether the first set allows all connections **explicitly** allowed by the other sets|list of [config set](#configsets) names|
57
+
|interferes|Checks whether any set interferes with the first set|list of [config set](#configsets) names|
58
+
|pairwiseInterferes|Checks whether any two sets in the list interfere each other|list of [config set](#configsets) names|
59
+
|containment|Checks whether any set is semantically contained in the first set (does not allow additional connections)|list of [config set](#configsets) names|
60
+
|twoWayContainment|Checks what are the relations - equivalence, contains, contained, disjoint, neither - between the first set and each of the other sets|list of [config set](#configsets) names|
61
+
|disjointness|Reports pairs of policies with overlapping sets of captured pods|list of [config set](#configsets) names|
62
+
|vacuity|Checks whether the set of policies changes cluster default behavior|list of [config set](#configsets) names|
63
+
|sanity|Checks all NetworkConfigs for sanity check - includes emptiness, vacuity and redundancies|list of [config set](#configsets) names|
64
+
|allCaptured|Checks that all pods are captured by at least one NetworkPolicy in each existing k8s/calico/istio network layer |list of [config set](#configsets) names|
65
+
|connectivityMap|Reports a summary of the allowed connections in the cluster|list of [config set](#configsets) names|
66
+
|expected|The expected sum of returned results by all sub-queries in this query (a warning is issued on mismatch)|integer|
67
+
|expectedOutput|The file path of the expected output of this query (for connectivityMap or semanticDiff queries)|string|
68
+
|expectedNotExecuted|The number of input configs/config pairs that the query is not expected to be run on. Reasons for not executing the configs are listed [here](CmdLineQueriesResults.md#a-query-will-not-be-executed-when)|integer|
69
+
|outputConfiguration| A dict object with the required output configuration|[outputConfig](#outputconfig) object|
70
70
71
71
#### <aname="configsets"></a>Config sets
72
72
Each entry in the list of config sets should be either
Copy file name to clipboardExpand all lines: tests/calico_testcases/example_policies/testcase26-multi-layer-policies/testcase26-multi-layer-allcaptured-scheme.yaml
0 commit comments