Skip to content

Commit

Permalink
feat(workspace): don't delete workspace on every reconciliation (#276)
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Loiselle <arthur.loiselle@dialogue.co>
  • Loading branch information
arththebird committed Jun 28, 2024
1 parent d9fc069 commit ae93265
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/controller/workspace/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,6 @@ func (c *connector) Connect(ctx context.Context, mg resource.Managed) (managed.E

switch cr.Spec.ForProvider.Source {
case v1beta1.ModuleSourceRemote:
// Workaround of https://github.com/hashicorp/go-getter/issues/114
if err := c.fs.RemoveAll(dir); err != nil {
return nil, errors.Wrap(err, errRemoteModule)
}

gc := getter.Client{
Src: cr.Spec.ForProvider.Module,
Dst: dir,
Expand Down

0 comments on commit ae93265

Please sign in to comment.