Required tasks Package

Konflux expects that certain Tekton tasks are executed during image builds. This package includes policy rules to confirm that the pipeline definition includes those required tasks.

Package Name

  • required_tasks

Rules Included

Missing future required task

Produce a warning when a task that will be required in the future is not currently included in the Pipeline definition.

  • Rule type: WARNING

  • WARNING message: %s is missing and will be required on %s

  • Code: required_tasks.missing_future_required_task

  • Source

Missing required task

Ensure that the set of required tasks is included in the Pipeline definition.

  • Rule type: FAILURE

  • FAILURE message: %s is missing or outdated

  • Code: required_tasks.missing_required_task

  • Source

Pipeline contains tasks

Confirm at least one task is present in the pipeline definition.

  • Rule type: FAILURE

  • FAILURE message: No tasks found in pipeline

  • Code: required_tasks.tasks_found

  • Source

Required task list is present in rule data

Confirm the required-tasks rule data was provided, since it’s required by the policy rules in this package.

  • Rule type: FAILURE

  • FAILURE message: The required tasks list is missing from the rule data

  • Code: required_tasks.required_tasks_list_present

  • Source

Required tasks found in pipeline definition

Produce a warning if a list of current or future required tasks does not exist in the rule data.

  • Rule type: WARNING

  • WARNING message: Required tasks do not exist for pipeline %q

  • Code: required_tasks.required_tasks_found

  • Source