Skip to content

[buildah] Remove privileged: true by adding SETFCAP cap #1298

@jsalatiel

Description

@jsalatiel

The buildah task has privileged: true set in its pod securityContext

That can be replaced by

securityContext:
  capabilities:
     add:
     - SETFCAP

and the build will work without needing privileged which sometimes is not allowed in the cluster.

Tested in k8s 1.30 running crio 1.30

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions