-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Hi all,
I am using Tekton with (buildpacks) to build my source code to the container image.
But I didn't run the Tekton task on my own cluster, it is a shared cluster with some security policy.
It works fine on my own cluster, but in this shared cluster, it reported an error:
Warning BuildCreationFailed 55m taskrun-controller Failed to create build pod "buildpack-nodejs-b95mx": pods "buildpack-nodejs-b95mx-pod-8gh7s" is forbidden: unable to validate against any pod security policy: [spec.volumes[5]: Invalid value: "downwardAPI": downwardAPI volumes are not allowed to be used spec.volumes[5]: Invalid value: "downwardAPI": downwardAPI volumes are not allowed to be used]
And I heard from Slack channel that Tekton plan to the downwardAPI can be configurable. Is that done now?
And I confirmed with cluster admin. We had the PSP like this:
apiVersion: extensions/v1beta1
kind: PodSecurityPolicy
spec:
volumes:
- downwardAPI
But still fail.
I just want to build a container image, is there any way to workaround this problem or disable the downwardAPI during the build in Tekton?
Thanks a lot