@@ -290,7 +290,6 @@ func (s *Provider) GetContentLayerPVC(ctx context.Context, owner, workspaceID st
290
290
// At this point we've found neither a full-workspace-backup, nor a legacy backup.
291
291
// It's time to use the initializer.
292
292
if gis := initializer .GetSnapshot (); gis != nil {
293
- log .Infof ("GetContentLayerPVC: GetSnapshot. %v" , gis .FromVolumeSnapshot )
294
293
if gis .FromVolumeSnapshot {
295
294
layer , err = contentDescriptorToLayerPVC ([]byte {})
296
295
if err != nil {
@@ -307,7 +306,6 @@ func (s *Provider) GetContentLayerPVC(ctx context.Context, owner, workspaceID st
307
306
return s .getSnapshotContentLayer (ctx , gis )
308
307
}
309
308
if pis := initializer .GetPrebuild (); pis != nil {
310
- log .Infof ("GetContentLayerPVC: GetPrebuild. %v" , pis .Prebuild .FromVolumeSnapshot )
311
309
if pis .Prebuild .FromVolumeSnapshot {
312
310
layer , err = contentDescriptorToLayerPVC ([]byte {})
313
311
if err != nil {
@@ -413,7 +411,7 @@ func (s *Provider) getSnapshotContentLayer(ctx context.Context, sp *csapi.Snapsh
413
411
}
414
412
415
413
// we've found a manifest for this fwb snapshot - let's use it
416
- l , err = s .layerFromContentManifest (ctx , manifest , csapi .WorkspaceInitFromPrebuild , true )
414
+ l , err = s .layerFromContentManifest (ctx , manifest , csapi .WorkspaceInitFromOther , true )
417
415
return l , manifest , nil
418
416
}
419
417
@@ -422,8 +420,6 @@ func (s *Provider) getPrebuildContentLayer(ctx context.Context, pb *csapi.Prebui
422
420
defer tracing .FinishSpan (span , & err )
423
421
span .LogKV ("isPVC" , isPVC )
424
422
425
- log .Infof ("getPrebuildContentLayer: %v" , isPVC )
426
-
427
423
segs := strings .Split (pb .Prebuild .Snapshot , "@" )
428
424
if len (segs ) != 2 {
429
425
return nil , nil , xerrors .Errorf ("invalid snapshot FQN: %s" , pb .Prebuild .Snapshot )
@@ -487,7 +483,6 @@ func (s *Provider) getPrebuildContentLayer(ctx context.Context, pb *csapi.Prebui
487
483
}
488
484
489
485
func (s * Provider ) layerFromContentManifest (ctx context.Context , mf * csapi.WorkspaceContentManifest , initsrc csapi.WorkspaceInitSource , ready bool ) (l []Layer , err error ) {
490
- log .Infof ("layerFromContentManifest: %v, %v" , ready , initsrc )
491
486
// we have a valid full workspace backup
492
487
l = make ([]Layer , len (mf .Layers ))
493
488
for i , mfl := range mf .Layers {
@@ -540,22 +535,19 @@ var pvcEnabledFile = `PVC`
540
535
// we cannot use /workspace folder as when mounting /workspace folder through PVC
541
536
// it will mask anything that was in container layer, hence we are using /.workspace instead here
542
537
func contentDescriptorToLayerPVC (cdesc []byte ) (* Layer , error ) {
543
- log .Info ("contentDescriptorToLayerPVC" )
544
538
layers := []fileInLayer {
545
539
{& tar.Header {Typeflag : tar .TypeDir , Name : "/.workspace" , Uid : initializer .GitpodUID , Gid : initializer .GitpodGID , Mode : 0755 }, nil },
546
540
{& tar.Header {Typeflag : tar .TypeDir , Name : "/.workspace/.gitpod" , Uid : initializer .GitpodUID , Gid : initializer .GitpodGID , Mode : 0755 }, nil },
547
541
{& tar.Header {Typeflag : tar .TypeReg , Name : "/.workspace/.gitpod/pvc" , Uid : 0 , Gid : 0 , Mode : 0775 , Size : int64 (len (pvcEnabledFile ))}, []byte (pvcEnabledFile )},
548
542
{& tar.Header {Typeflag : tar .TypeReg , Name : "/.supervisor/prestophook.sh" , Uid : 0 , Gid : 0 , Mode : 0775 , Size : int64 (len (prestophookScript ))}, []byte (prestophookScript )},
549
543
}
550
544
if len (cdesc ) > 0 {
551
- log .Infof ("contentDescriptorToLayerPVC: %v" , string (cdesc ))
552
545
layers = append (layers , fileInLayer {& tar.Header {Typeflag : tar .TypeReg , Name : "/.workspace/.gitpod/content.json" , Uid : initializer .GitpodUID , Gid : initializer .GitpodGID , Mode : 0755 , Size : int64 (len (cdesc ))}, cdesc })
553
546
}
554
547
return layerFromContent (layers ... )
555
548
}
556
549
557
550
func workspaceReadyLayerPVC (src csapi.WorkspaceInitSource ) (* Layer , error ) {
558
- log .Infof ("workspaceReadyLayerPVC: %v" , src )
559
551
msg := csapi.WorkspaceReadyMessage {
560
552
Source : src ,
561
553
}
@@ -572,7 +564,6 @@ func workspaceReadyLayerPVC(src csapi.WorkspaceInitSource) (*Layer, error) {
572
564
}
573
565
574
566
func workspaceReadyLayer (src csapi.WorkspaceInitSource ) (* Layer , error ) {
575
- log .Infof ("workspaceReadyLayer: %v" , src )
576
567
msg := csapi.WorkspaceReadyMessage {
577
568
Source : src ,
578
569
}
0 commit comments