Skip to content

Commit f4b227a

Browse files
committed
wip
1 parent 1e9765c commit f4b227a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

components/ws-daemon/pkg/internal/session/workspace.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ func (s *Workspace) UpdateGitStatus(ctx context.Context, podUid string) (res *cs
268268
if err != nil {
269269
return nil, err
270270
}
271+
if len(dirs) == 0 {
272+
return nil, xerrors.Errorf("cannot locate workspace pvc mount to update git status")
273+
}
271274
pvcName := ""
272275
// each workspace pod should only have one PVC attached to it
273276
for _, d := range dirs {

install/installer/pkg/components/ws-daemon/daemonset.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@ fi
240240
MountPath: "/mnt/node0",
241241
},
242242
{
243-
Name: "kubelet-pods",
244-
MountPath: "/mnt/pods",
243+
Name: "kubelet-pods",
244+
MountPath: "/mnt/pods",
245+
MountPropagation: func() *corev1.MountPropagationMode { r := corev1.MountPropagationHostToContainer; return &r }(),
245246
},
246247
{
247248
Name: "node-mounts",

0 commit comments

Comments
 (0)