kubesphere / kubesphere/kubesphere

DevOps project won't be deleted when delete Workspace.

Open
#6,498 3 comments 0 reactions 2 assignees Claimed by @seeinghr View on GitHub
kind/bug
Dominant language
Go
Stars
17.1k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

**Describe the Bug**
DevOps project won't be deleted when delete Workspace.
删除企业空间时勾选“删除企业空间中的项目”不会把该项目内的DevOps项目一同删除。

![Image](https://github.com/user-attachments/assets/b5bc02e0-ebc7-4a18-a9b3-00ab140927ef)

**Versions Used**
KubeSphere: 3.4.1
Kubernetes: (If KubeSphere installer used, you can skip this)

**Environment**
How many nodes and their hardware configuration:

For example: Debian 12.10.1 / 1 masters: 8cpu/8g;

**How To Reproduce**
Steps to reproduce the behavior:
1. Create a Workspace named test.
![Image](https://github.com/user-attachments/assets/9c99e6f8-8847-439b-bb9f-5e69783e4be4)

2. Create a DevOps Project in the Workspace.
![Image](https://github.com/user-attachments/assets/d8ef5671-cd81-4261-91a6-a7898c5bebc4)
![Image](https://github.com/user-attachments/assets/d8585c85-1228-457b-8000-6aaf8fdd08ee)

3. Delete the test Workspace.
![Image](https://github.com/user-attachments/assets/f44da444-fe45-4462-8f05-c4358e6e804d)

4. Recreate a Workspace named test.
![Image](https://github.com/user-attachments/assets/9c99e6f8-8847-439b-bb9f-5e69783e4be4)

5.Switch to the DevOps project, you can see the DevOps project still in it.

**Expected behavior**
All project should be deleted when delete a project and check delete all project.
![Image](https://github.com/user-attachments/assets/a1bff109-b36c-4b1a-82d0-c122bdfecb93)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.