Skip to content

Commit

Permalink
Revert "[supervisor] fix chown of /workspace when using PVC"
Browse files Browse the repository at this point in the history
This reverts commit 370ba5e.
  • Loading branch information
jenting authored and roboquat committed Aug 26, 2022
1 parent 3eb1ba5 commit fab72bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/supervisor/pkg/supervisor/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1325,11 +1325,9 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst

fn := "/workspace/.gitpod/content.json"
fnReady := "/workspace/.gitpod/ready"
doChown := true
if _, err := os.Stat("/.workspace/.gitpod/content.json"); !os.IsNotExist(err) {
fn = "/.workspace/.gitpod/content.json"
fnReady = "/.workspace/.gitpod/ready"
doChown = false // cannot chown when using PVC as it is owned by 133332 user
log.Info("Detected content.json in /.workspace folder, assuming PVC feature enabled")
}

Expand Down Expand Up @@ -1378,7 +1376,7 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst

log.Info("supervisor: running content service executor with content descriptor")
var src csapi.WorkspaceInitSource
src, err = executor.Execute(ctx, "/workspace", contentFile, doChown)
src, err = executor.Execute(ctx, "/workspace", contentFile, true)
if err != nil {
return
}
Expand Down

0 comments on commit fab72bc

Please sign in to comment.