Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "persistent volume schema",
"description": "json schema for persistent volume metrics",
"type": "object",
"properties": {
"CloudWatchMetrics": {},
"ClusterName": {},
"Timestamp": {},
"Type": {},
"Version": {},
"kubernetes": {},
"persistent_volume_count": {}
},
"required": [
"ClusterName",
"Timestamp",
"Type",
"Version",
"CloudWatchMetrics"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "persistent volume claim schema",
"description": "json schema for persistent volume claim metrics",
"type": "object",
"properties": {
"CloudWatchMetrics": {},
"ClusterName": {},
"Namespace": {},
"PersistentVolumeClaimName": {},
"Timestamp": {},
"Type": {},
"Version": {},
"kubernetes": {},
"persistent_volume_claim_count": {},
"persistent_volume_claim_status_bound": {},
"persistent_volume_claim_status_pending": {},
"persistent_volume_claim_status_lost": {}
},
"required": [
"ClusterName",
"Namespace",
"PersistentVolumeClaimName",
"Timestamp",
"Type",
"Version",
"CloudWatchMetrics"
]
}
6 changes: 6 additions & 0 deletions test/metric_value_benchmark/eks_resources/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ var (
eksNodeEfaSchema string
//go:embed test_schemas/node_ebs.json
eksNodeEBSSchema string
//go:embed test_schemas/persistent_volume.json
eksPersistentVolumeSchema string
//go:embed test_schemas/persistent_volume_claim.json
eksPersistentVolumeClaimSchema string

EksClusterValidationMap = map[string]string{
"Cluster": eksClusterSchema,
Expand Down Expand Up @@ -93,6 +97,8 @@ var (
"PodEFA": eksPodEfaSchema,
"NodeEFA": eksNodeEfaSchema,
"NodeEBS": eksNodeEBSSchema,
"PersistentVolume": eksPersistentVolumeSchema,
"PersistentVolumeClaim": eksPersistentVolumeClaimSchema,
}

EksClusterFrequencyValidationMap = map[string]int{
Expand Down