This section describes how to view code repository details and modify files within a repository.

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. Refer to Invite a User to a DevOps Project.

Steps

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

  2. Click  DevOps > Code Repositories in the left navigation pane.

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

  4. In the code repository list, click the name of a repository to open its details page.

  5. On the details page, select a branch in the upper-left corner to view the files in the repository.

    • Click the search box and enter keywords to search for files.

    • Click refresh new to refresh the directory.

    • Click collapse1 at the top to collapse the directory tree area. Click expand1 again to expand the directory tree area.

  6. Click update or Upload File to upload a file or directory (a compressed package in tgz or tar.gz format) to the code repository. The file or directory will be uploaded to the currently selected path.

    Note

    Ensure you have write permissions for the current repository.

  7. Under More Actions, click Copy Path to copy the path of the currently selected file or directory; click Delete to delete the currently selected file or directory.

    If the selected object is a file, you can also edit the file, copy the file content, and download the file.