Skip to content

Add internal API to fetch policies_configuration for agent

What does this MR do and why?

This MR adds new internal API to fetch policies_configuration for an agent: a list of scheduled scans with requested namespaces based on the policies defined for given agent.

GET api/v4/internal/kubernetes/modules/starboard_vulnerability/policies_configuration

{
  "configurations": [
    {
      "cadence": "30 2 * * *",
      "namespaces": [
        "namespace-a",
        "namespace-b"
      ],
      "updated_at": "2022-06-02T05:36:26+00:00"
    }
  ]
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #341358 (closed)

Merge request reports