Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 859 Bytes

builds-restricting-build-strategy-globally.adoc

File metadata and controls

32 lines (25 loc) · 859 Bytes

Restricting build strategies to users globally

You can allow a set of specific users to create builds with a particular strategy.

Prerequisites
  • Disable global access to the build strategy.

Procedure
  • Assign the role that corresponds to the build strategy to a specific user. For example, to add the system:build-strategy-docker cluster role to the user devuser:

    $ oc adm policy add-cluster-role-to-user system:build-strategy-docker devuser
    Warning

    Granting a user access at the cluster level to the builds/docker subresource means that the user can create builds with the Docker strategy in any project in which they can create builds.