Skip to content

Commit

Permalink
Label per-workspace PVCs with DevWorkspace ID.
Browse files Browse the repository at this point in the history
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
  • Loading branch information
amisevsk committed Sep 7, 2023
1 parent 58ada48 commit 9aa4e8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/provision/storage/perWorkspaceStorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ func syncPerWorkspacePVC(workspace *common.DevWorkspaceWithConfig, clusterAPI sy
if err != nil {
return nil, err
}
pvc.ObjectMeta.Labels[constants.DevWorkspaceIDLabel] = workspace.Status.DevWorkspaceId

if err := controllerutil.SetControllerReference(workspace.DevWorkspace, pvc, clusterAPI.Scheme); err != nil {
return nil, err
Expand Down

0 comments on commit 9aa4e8e

Please sign in to comment.