Skip to content

[TASK] Add namespaceMetrics attribute to GET /workspacekinds API response #678

@andyatmiami

Description

@andyatmiami

Certification

  • I certify I am an Epic Owner for Kubeflow Notebooks 2.0 and expected to create planning-related issues.

Description

🛑 This issue is dependent upon completion of #677

Work was originally performed to include a clusterMetrics object on the API response for GET /workspacekinds

That commit had a few // TODO comments that we want to address as part of this work:

When the namespaceFilter query parameter is provided to the GET /workspacekinds endpoint - the following behavior should occur:

  • clusterMetrics attribute is omitted from API response
  • namespaceMetrics attribute is included in API response
  • "counts" for the namespaceMetrics should be scoped to only the specified namespace as provided in ?namespaceFilter

namespaceMetrics should be typed and handled similarly as clusterMetrics

Acceptance Criteria

  • when ?namespaceFilter query parameter IS NOT provided:
    • clusterMetrics attribute included in GET /workspacekinds API response
      • counts included reflect data across all namespaces
    • namespaceMetrics attribute omitted in GET /workspacekinds API response
  • when ?namespaceFilter query parameter IS provided:
    • namespaceMetrics attribute included in GET /workspacekinds API response
      • counts included reflect data specific to namespace provided in ?namespaceFilter
    • clusterMetrics attribute omitted in GET /workspacekinds API response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions