Skip to content

Remove the PVC object if the workspace pod is never been ready #11635

@jenting

Description

@jenting

Bug description

We found that in some scenarios (eg, the workspace pod in ErrImagePull), the workspace pod never goes into the Running state.
After that, the workspace is stopped, but the PVC object doesn't be deleted.

Steps to reproduce

No idea, but I saw it in workspace preview that the workspace pod is in ErrImagePull state and then terminating state.

image

After that, the PVC is orphaned, and we don't have to create VolumeSnapshot object since this workspace doesn't have to take backup.

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

#7901

Metadata

Metadata

Assignees

Labels

team: workspaceIssue belongs to the Workspace teamtype: bugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions