Refactor PipelineContext to decouple command

Why are we doing this work

We're currently initializing PipelineContext with command only to access a few attributes needed to build the policy pipelines. We should pass those explicitly and not delegate via command.

This should be done after refactoring from Refactor PEP using PipelineContext (!172295 - merged).

Relevant links

Non-functional requirements

  • Documentation:
  • Feature flag:
  • Performance:
  • Testing:

Implementation plan

Verification steps

Edited by 🤖 GitLab Bot 🤖