Skip to content

Commit 84307c3

Browse files
jentingroboquat
authored andcommitted
Add labels to PVC object
Signed-off-by: JenTing Hsiao <[email protected]>
1 parent 73cbd09 commit 84307c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/ws-manager/pkg/manager/create.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ func (m *Manager) createPVCForWorkspacePod(startContext *startWorkspaceContext)
268268
ObjectMeta: metav1.ObjectMeta{
269269
Name: fmt.Sprintf("%s-%s", prefix, req.Id),
270270
Namespace: m.Config.Namespace,
271+
Labels: startContext.Labels,
271272
},
272273
Spec: corev1.PersistentVolumeClaimSpec{
273274
AccessModes: []corev1.PersistentVolumeAccessMode{corev1.ReadWriteOnce},

0 commit comments

Comments
 (0)