For the PVC Cost we will need to update this method in the ocp_report_db_accessor.py. (Don’t forget to update the tag one as well).
We will append a volume cost to the monthly_infrastructure_cost & monthly_supplementary_cost json created in the previous issue.
Example:
- {"cpu": 0.000000, "memory": 0.000000, “volume”: 0.000000}
How do we determine the pvc volume value?
The PVC can belong to multiple nodes, therefore we will have to get a count of how many nodes the pvc is on then divide the cost equally among the nodes.