UNCLASSIFIED - NO CUI

Skip to content

Add compliance policies command

Create the policies subcommand in compliance to house the new functionality.

Refer to the command documentation for information on the structure.

Acceptance Criteria

  • Create the bbctl compliance policies cobra.Command
  • Fill out the short, long, and example usage with expected usage
  • policies command will call the compliance dashboard API endpoint: /policy-scans - gets policy data from kyverno
  • Display all data returned from endpoint
  • If compliance dashboard is not available return "compliance dashboard not found"
  • Write unit tests. Tests should be able to test the arguments passed in, command creation, etc. Output does not need to be validated at this time.
Edited by Jacob Kershaw