KubeSphere supports restricting the code repositories and target locations for resource continuous deployment by setting up a whitelist.

This document describes how to add a continuous deployment whitelist.

Prerequisites

  • The DevOps extension must be installed and enabled on the KubeSphere platform.

  • A workspace, a DevOps project, and a user (e.g., project-regular) have been created. The user has been invited to the DevOps project and granted the operator role. Please refer to Invite a User to a DevOps Project.

  • Code repositories have been imported.

Steps

  1. Log in to the KubeSphere console as the project-regular user and enter your workspace.

  2. In the left navigation pane, select DevOps > Continuous Deployment.

  3. On the Continuous Deployment Whitelist page, click Edit Whitelist.

  4. In the Edit Whitelist dialog box that appears, select the code repository, deployment cluster, and project, then click OK.

    Click Add to add multiple code repositories and deployment locations.