Pipeline tasks fail almost instantly with the message:
failed to create task run pod "xxxxxx-pipelinerun-vtrhv-fetch-source": pods "xxxxxx-pipelinerun-vtrhv-fetch-source-pod" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false (containers "prepare", "place-scripts", "step-clone" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (containers "prepare", "place-scripts", "step-clone" must set securityContext.capabilities.drop=["ALL"]), seccompProfile (pod or containers "prepare", "place-scripts", "step-clone" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost"). Maybe missing or invalid Task openshift-pipelines/git-clone
This seems to be happening in all pipeline runs and tasks which were working without issue
Steps to Reproduce the Problem
On an openshift 4.12 cluster, install the Openshift-pipelines v1.8 operator
Create a pipeline with a task as per the attached task.yaml file
task.yaml.zip
Run the pipeline with the defined parameters, it should run successfully
Upgrade the Openshift-pipelines operator to version 1.9
First thing is these both the versions are out of support. Also are you setting allowPriviledgeEscalation in task steps? Also did the upgrade happen completely?
Expected Behavior
Pipeline tasks run successfully
Actual Behavior
Pipeline tasks fail almost instantly with the message:
This seems to be happening in all pipeline runs and tasks which were working without issue
Steps to Reproduce the Problem
Additional Info
Kubernetes version:
Output of
kubectl version
:Tekton Pipeline version:
v0.41.3
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'