This section describes how to create a project role.

Prerequisites

You need to join a DevOps project and have the Project Role Management permission in the project. For more information, see "DevOps Project Members" and "DevOps Project Roles".

Steps

  1. Log in to the KubeSphere web console with a user who has Project Role Management permissions and enter your workspace.

  2. Click  DevOps > DevOps Project Management in the left navigation pane.

  3. Click DevOps Project Roles to open the project role list.

  4. Select a project from the drop-down list in the upper left corner of the page.

  5. Click Create on the page.

  6. In the Create Project Role dialog box, set the name, alias, and description for the project role, then click Edit Permissions.

    Parameter Description

    Name

    The name of the project role. The name can only contain lowercase letters, numbers, and hyphens (-), must start and end with a lowercase letter or number, and can be up to 63 characters long.

    Alias

    The alias of the project role. Aliases for different project roles can be the same.

    Description

    The description information of the project role. The description can contain any characters and has a maximum length of 256 characters.

  7. In the Edit Permissions dialog box, set the permissions for the project role, then click OK.

    • Project Settings

      Permission Allowed Operations

      Project Settings Management

      Update and delete this DevOps project.

    • Pipelines

      Permission Allowed Operations

      Pipeline Run Management

      Manage pipeline runs and download artifacts in the DevOps project.

      Pipeline Run Record Viewing

      View pipeline run records in the DevOps project.

      Pipeline Management

      Create, edit, and delete pipelines in the DevOps project.

      Pipeline Viewing

      View pipelines in the DevOps project.

    • Credentials

      Permission Allowed Operations

      Credential Management

      Create, edit, and delete credentials in the DevOps project.

      Credential Viewing

      View and use credentials in the DevOps project.

    • Continuous Deployment

      Permission Allowed Operations

      Continuous Deployment Management

      Create, edit, and delete continuous deployments in the DevOps project.

      Continuous Deployment Viewing

      View continuous deployments in the DevOps project.

    • Code Repositories

      Permission Allowed Operations

      Code Repository Management

      Manage code repositories in the DevOps project.

      Code Repository Viewing

      View code repositories in the DevOps project.

    • Access Control

      Permission Allowed Operations

      Project Role Management

      Create project roles, edit project role information, edit project role permissions, delete project roles.

      Project Role Viewing

      View the project role list, view project role details.

      Project Member Management

      Invite users to join the project, modify project member roles, remove project members.

      Project Member Viewing

      View the project member list.