diff --git a/koku/api/report/ocp/provider_map.py b/koku/api/report/ocp/provider_map.py index bdb1fee800..37380701ef 100644 --- a/koku/api/report/ocp/provider_map.py +++ b/koku/api/report/ocp/provider_map.py @@ -25,6 +25,7 @@ from reporting.provider.ocp.models import OCPCostSummaryByNodeP from reporting.provider.ocp.models import OCPCostSummaryByProjectP from reporting.provider.ocp.models import OCPCostSummaryP +from reporting.provider.ocp.models import OCPPodSummaryByNodeP from reporting.provider.ocp.models import OCPPodSummaryByProjectP from reporting.provider.ocp.models import OCPPodSummaryP from reporting.provider.ocp.models import OCPVolumeSummaryByProjectP @@ -645,12 +646,14 @@ def __init__(self, provider, report_type, schema_name): "cpu": { "default": OCPPodSummaryP, ("cluster",): OCPPodSummaryP, + ("node",): OCPPodSummaryByNodeP, ("project",): OCPPodSummaryByProjectP, ("cluster", "project"): OCPPodSummaryByProjectP, }, "memory": { "default": OCPPodSummaryP, ("cluster",): OCPPodSummaryP, + ("node",): OCPPodSummaryByNodeP, ("project",): OCPPodSummaryByProjectP, ("cluster", "project"): OCPPodSummaryByProjectP, }, diff --git a/koku/reporting/migrations/0314_ocppod_by_node_p_data_migration.py b/koku/reporting/migrations/0314_ocppod_by_node_p_data_migration.py index bf5870485b..ccf4b6a543 100644 --- a/koku/reporting/migrations/0314_ocppod_by_node_p_data_migration.py +++ b/koku/reporting/migrations/0314_ocppod_by_node_p_data_migration.py @@ -39,5 +39,6 @@ class Migration(migrations.Migration): ] operations = [ - migrations.RunPython(code=migrate_node_date, reverse_code=migrations.RunPython.noop), + # this was a 1-time data migration, so now this is a no-op + # migrations.RunPython(code=migrate_node_date, reverse_code=migrations.RunPython.noop), ]