PipelineRun and TaskRun resources must be executed from a bundle
apiVersion: kyverno.io/v1kind: ClusterPolicymetadata:name: require-tekton-bundleannotations:policies.kyverno.io/title: Require Tekton Bundlepolicies.kyverno.io/category: Tektonpolicies.kyverno.io/severity: mediumpolicies.kyverno.io/subject: TaskRun, PipelineRunkyverno.io/kyverno-version: 1.7.1policies.kyverno.io/minversion: 1.6.0kyverno.io/kubernetes-version: "1.23"policies.kyverno.io/description: PipelineRun and TaskRun resources must be executed from a bundlespec:validationFailureAction: Auditbackground: truerules:- name: check-bundle-pipelinerunmatch:any:- resources:kinds:- PipelineRunvalidate:message: A bundle is required.pattern:spec:pipelineRef:bundle: "?*"- name: check-bundle-taskrunmatch:any:- resources:kinds:- TaskRunvalidate:message: A bundle is required.pattern:spec:taskRef:bundle: "?*"
This policy performs some best practices validation on Application fields. Path or chart must be specified but never both. And destination.name or destination.server must be specified but never both.
This policy prevents the use of the default project in an Application.
This policy prevents updates to the project field after an Application is created.