Skip to content

Commit 2cebbcc

Browse files
Add log schema for PersistentVolume and PersistentVolumeClaim to fix integ test failure (#614)
Co-authored-by: Dominic Sciascia <[email protected]>
1 parent 4eceaf3 commit 2cebbcc

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
{
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "persistent volume schema",
5+
"description": "json schema for persistent volume metrics",
6+
"type": "object",
7+
"properties": {
8+
"CloudWatchMetrics": {},
9+
"ClusterName": {},
10+
"Timestamp": {},
11+
"Type": {},
12+
"Version": {},
13+
"kubernetes": {},
14+
"persistent_volume_count": {}
15+
},
16+
"required": [
17+
"ClusterName",
18+
"Timestamp",
19+
"Type",
20+
"Version",
21+
"CloudWatchMetrics"
22+
]
23+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "persistent volume claim schema",
4+
"description": "json schema for persistent volume claim metrics",
5+
"type": "object",
6+
"properties": {
7+
"CloudWatchMetrics": {},
8+
"ClusterName": {},
9+
"Namespace": {},
10+
"PersistentVolumeClaimName": {},
11+
"Timestamp": {},
12+
"Type": {},
13+
"Version": {},
14+
"kubernetes": {},
15+
"persistent_volume_claim_count": {},
16+
"persistent_volume_claim_status_bound": {},
17+
"persistent_volume_claim_status_pending": {},
18+
"persistent_volume_claim_status_lost": {}
19+
},
20+
"required": [
21+
"ClusterName",
22+
"Namespace",
23+
"PersistentVolumeClaimName",
24+
"Timestamp",
25+
"Type",
26+
"Version",
27+
"CloudWatchMetrics"
28+
]
29+
}

test/metric_value_benchmark/eks_resources/util.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ var (
6464
eksNodeEfaSchema string
6565
//go:embed test_schemas/node_ebs.json
6666
eksNodeEBSSchema string
67+
//go:embed test_schemas/persistent_volume.json
68+
eksPersistentVolumeSchema string
69+
//go:embed test_schemas/persistent_volume_claim.json
70+
eksPersistentVolumeClaimSchema string
6771

6872
EksClusterValidationMap = map[string]string{
6973
"Cluster": eksClusterSchema,
@@ -93,6 +97,8 @@ var (
9397
"PodEFA": eksPodEfaSchema,
9498
"NodeEFA": eksNodeEfaSchema,
9599
"NodeEBS": eksNodeEBSSchema,
100+
"PersistentVolume": eksPersistentVolumeSchema,
101+
"PersistentVolumeClaim": eksPersistentVolumeClaimSchema,
96102
}
97103

98104
EksClusterFrequencyValidationMap = map[string]int{

0 commit comments

Comments
 (0)