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 prevents the use of the default project in an Application.
This policy prevents updates to the project field after an Application is created.
This policy ensures that the name of the ApplicationSet is the same value provided in the project.