Skip to content

Report downwardAPI volumes are not allowed to be used in a shared cluster #2307

@zhangtbj

Description

@zhangtbj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.triage/needs-informationIndicates an issue needs more information in order to work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions