diff options
| author | Daniel Mavis <90711593+dmavis@users.noreply.github.com> | 2023-07-05 20:11:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-05 21:11:03 -0400 |
| commit | 7c93d602a7e3e18b175a8d67457f37e9a9be3d73 (patch) | |
| tree | d8ae5bef4b20446a46a0bfef80ba10c691aa0dae /pkg | |
| parent | 5366cc14ee80fe432d1f94e961a02a4a662f70f3 (diff) | |
fix: kustomize write target issue (#583)
Signed-off-by: Daniel Mavis <daniel.mavis@faa.gov>
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/argocd/git.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pkg/argocd/git.go b/pkg/argocd/git.go index 6aa4b42..8f2ffbc 100644 --- a/pkg/argocd/git.go +++ b/pkg/argocd/git.go @@ -294,18 +294,8 @@ var _ changeWriter = writeOverrides // writeKustomization writes any changes required for updating one or more images to a kustomization.yml func writeKustomization(app *v1alpha1.Application, wbc *WriteBackConfig, gitC git.Client) (err error, skip bool) { logCtx := log.WithContext().AddField("application", app.GetName()) - if oldDir, err := os.Getwd(); err != nil { - return err, false - } else { - defer func() { - _ = os.Chdir(oldDir) - }() - } base := filepath.Join(gitC.Root(), wbc.KustomizeBase) - if err := os.Chdir(base); err != nil { - return err, false - } logCtx.Infof("updating base %s", base) |
