diff --git a/test/metric_value_benchmark/eks_resources/test_schemas/persistent_volume.json b/test/metric_value_benchmark/eks_resources/test_schemas/persistent_volume.json new file mode 100644 index 000000000..1b7493c7d --- /dev/null +++ b/test/metric_value_benchmark/eks_resources/test_schemas/persistent_volume.json @@ -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" + ] +} \ No newline at end of file diff --git a/test/metric_value_benchmark/eks_resources/test_schemas/persistent_volume_claim.json b/test/metric_value_benchmark/eks_resources/test_schemas/persistent_volume_claim.json new file mode 100644 index 000000000..d56bb3989 --- /dev/null +++ b/test/metric_value_benchmark/eks_resources/test_schemas/persistent_volume_claim.json @@ -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" + ] +} \ No newline at end of file diff --git a/test/metric_value_benchmark/eks_resources/util.go b/test/metric_value_benchmark/eks_resources/util.go index 0d8e94408..20009e8ea 100644 --- a/test/metric_value_benchmark/eks_resources/util.go +++ b/test/metric_value_benchmark/eks_resources/util.go @@ -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, @@ -93,6 +97,8 @@ var ( "PodEFA": eksPodEfaSchema, "NodeEFA": eksNodeEfaSchema, "NodeEBS": eksNodeEBSSchema, + "PersistentVolume": eksPersistentVolumeSchema, + "PersistentVolumeClaim": eksPersistentVolumeClaimSchema, } EksClusterFrequencyValidationMap = map[string]int{