Skip to content

Commit

Permalink
fixup! feat: allow configuring persistent workspace home directory
Browse files Browse the repository at this point in the history
  • Loading branch information
AObuchow committed Jul 20, 2023
1 parent 1a044dd commit 788df71
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/deploy/dev-workspace-config/dev_workspace_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,8 @@ func updateWorkspaceStorageConfig(devEnvironments *chev2.CheClusterDevEnvironmen
func updatePersistUserHomeConfig(persistentHomeConfig *chev2.PersistentHomeConfig, workspaceConfig *controllerv1alpha1.WorkspaceConfig) {
workspaceConfig.PersistUserHome = nil
if persistentHomeConfig != nil {
if workspaceConfig.PersistUserHome == nil {
workspaceConfig.PersistUserHome = &controllerv1alpha1.PersistentHomeConfig{}
}
workspaceConfig.PersistUserHome.Enabled = pointer.Bool(pointer.BoolDeref(persistentHomeConfig.Enabled, constants.DefaultPersistUserHomeEnabled))
workspaceConfig.PersistUserHome = &controllerv1alpha1.PersistentHomeConfig{}
workspaceConfig.PersistUserHome.Enabled = persistentHomeConfig.Enabled
}
}

Expand Down

0 comments on commit 788df71

Please sign in to comment.