summaryrefslogtreecommitdiff
path: root/pkg/argocd/git.go
AgeCommit message (Collapse)Author
2025-01-14Keep yaml sequence indentation when writing back to Git to a kustomize file ↵Alessandro Zanatta
(#1002) Signed-off-by: Alessandro Zanatta <alessandro.zanatta.lav@gmail.com>
2025-01-07Move references for kube, image, registry to registry-scanner (#998)Ishita Sequeira
Signed-off-by: Ishita Sequeira <ishiseq29@gmail.com>
2024-12-16Update references of pkg/tag pkg/log pkg/options to use modules from ↵Ishita Sequeira
registry-scanner (#962) Signed-off-by: Ishita Sequeira <ishiseq29@gmail.com>
2024-11-08fix: delay setting git.username and git.email config till commit time (#912)Cheng Fang
Signed-off-by: Cheng Fang <cfang@redhat.com>
2024-11-01fix: #895 Image Updater continuously force-pushes new commits when checkout ↵Cheng Fang
branch is specified (#911) Signed-off-by: Cheng Fang <cfang@redhat.com>
2024-10-04fix(git): write back to custom git branch failed by rejected push: tip of ↵Cheng Fang
your current branch is behind (#882) Signed-off-by: Cheng Fang <cfang@redhat.com>
2024-09-20fix: Kustomize skip commit if nothing changed (#607)Surya Asriadie
Signed-off-by: Fs02 <surya.asriadie@gmail.com>
2024-08-13feat: Use shallow clone to speed up performance (#830)jnovick
Signed-off-by: Joshua Novick <joshua.novick@hunters.ai>
2024-07-17Preserve field order when updating kustomization.yaml file (#666)Jaye Doepke
Signed-off-by: Jaye Doepke <jdoepke@mintel.com>
2024-07-01Create directory automatically (#680)jnovick
Signed-off-by: Joshua Novick <joshua.novick@hunters.ai>
2024-06-18feat: Support for signing commits with gpg and ssh (#710)Dustin Lactin
Signed-off-by: Dustin Lactin <dustin.lactin@gmail.com>
2024-05-27chore(deps): Pull in Git client changes from Argo CD v2.11.2jannfis
Signed-off-by: jannfis <jann@mistrust.net>
2023-12-04feat: multisource support (#636)David Vidal Villamide
* change: update argocd library from 2.7.9 to 2.8.4 for future multisource support Signed-off-by: David Vidal Villamide <david@askharilabs.com> * feat: added support for multisource applications. Signed-off-by: David Vidal Villamide <david@askharilabs.com> * feat: added multisource support to Git WriteBack method Signed-off-by: David Vidal Villamide <david@askharilabs.com> * changed: all Spec.Source references to enable multisource support Signed-off-by: David Vidal Villamide <david@askharilabs.com> * feat: added multisource support for write back method fix: pointer management at getApplicationSource function Signed-off-by: David Vidal Villamide <david@askharilabs.com> * feat: added write-back-target prefix to allow the use of values.yaml files These changes intend to add support for write-back-method git on multisource applications based on Helm sources and value files as Helm does. Also we tried to keep the same coding patterns and the previous features and flows untouched. Signed-off-by: David Vidal Villamide <david@askharilabs.com> * add: helmvalues word to expected dictionaries for check spelling tests Signed-off-by: David Vidal Villamide <david@askharilabs.com> * fix: readthedocs build.os parameter added and set to ubuntu-22.04 Signed-off-by: David Vidal Villamide <david@askharilabs.com> * fix: build.tools.python set to version 3.12 to create documentation Signed-off-by: David Vidal Villamide <david@askharilabs.com> * test: dded coverage for all the new code Signed-off-by: David Vidal Villamide <david@askharilabs.com> * fix: get image and tag parameter from getHelmParameterNamesFromAnnotation fix: set default values for image and tag parameters change: get application source type from Spec intead of Status values Signed-off-by: David Vidal Villamide <david@askharilabs.com> --------- Signed-off-by: David Vidal Villamide <david@askharilabs.com>
2023-08-15feat: Add possibility to specify write-back GIT repository as annotation (#424)Florin Hillebrand
* Add possibility to specify write-back GIT repository as annotation. Signed-off-by: flozzone <flozzone@gmail.com> * Update golangci-lint to 1.52.2. Signed-off-by: flozzone <flozzone@gmail.com> * Replace deprecated golangci linters with 'unused' linter. Signed-off-by: flozzone <flozzone@gmail.com> * Fix Goimport issues. Signed-off-by: flozzone <flozzone@gmail.com> --------- Signed-off-by: flozzone <flozzone@gmail.com>
2023-07-09feat: Respect original parameter overrides with git write-back (#573)KS. Yim
* Fix original override not respected Signed-off-by: KS. Yim <ks.yim@linecorp.com> * Add writeOverrides unittest Signed-off-by: KS. Yim <ks.yim@linecorp.com> * Add helm override commit test Signed-off-by: KS. Yim <ks.yim@linecorp.com> * lint Signed-off-by: KS. Yim <ks.yim@linecorp.com> * fix shadowed err Signed-off-by: KS. Yim <ks.yim@linecorp.com> --------- Signed-off-by: KS. Yim <ks.yim@linecorp.com> Co-authored-by: KS. Yim <ks.yim@linecorp.com>
2023-07-05fix: kustomize write target issue (#583)Daniel Mavis
Signed-off-by: Daniel Mavis <daniel.mavis@faa.gov>
2022-11-15fix: update application config sample & replace the deprecated ioutil pkg (#492)YTCai
* docs: update application config sample Signed-off-by: CaiYueTing <qazxcv367tasi@gmail.com> * fix: use os read/write instead of deprecated ioutil read/write package Signed-off-by: CaiYueTing <qazxcv367tasi@gmail.com> * fix: use io, os pkg instead of all of the ioutil pkg Signed-off-by: CaiYueTing <qazxcv367tasi@gmail.com> Signed-off-by: CaiYueTing <qazxcv367tasi@gmail.com>
2022-02-23refactor(WBC): Target field in the WriteBackConfig (#380)Patryk Woziński
2022-02-23Checkout after creating a new branch (#384)katainaka
* Checkout after creating a new branch * Fix test * Fix unnecessary checkout
2022-01-19refactor: Refactor logging to provide more context information (#357)jannfis
* refactor: Refactor logging to provide more context information Signed-off-by: jannfis <jann@mistrust.net> * More context Signed-off-by: jannfis <jann@mistrust.net> * Fix unit tests Signed-off-by: jannfis <jann@mistrust.net>
2022-01-07feat: add ability to specify a different write and base branch (#304)Nick
* add ability to specify a different write and base branch * format/spelling * add sha1 to template and truncate branch name length * add hasher error checking * document * spelling * correction to template docs * use sha256 and add warning to truncation * condense annotations into one * add some tests * add docs on omitting base branch
2021-10-26chore: Update and refactor Git client (#283)jannfis
Signed-off-by: jannfis <jann@mistrust.net>
2021-10-21fix: use kyaml to preserve kustomization (#274)noah
* fix: use kyaml to preserve kustomization fixes #250 fixes #268 fixes #247 * chore: linter error * fix: tests and linting * go mod tidy
2021-08-02chore: Upgrade Argo CD dependencies to v2.0.5 (#230)jannfis
Signed-off-by: jannfis <jann@mistrust.net>
2021-05-11feat: allow write-back to actual kustomization files (#200)noah
* feat: allow write-back to actual kustomization files #199 * fix: was not handling default path correctly default is the source path * fix: sort imports
2021-04-14feat: Allow setting custom Git commit messages (#193)jannfis
* feat: Support Git commit message templates Signed-off-by: jannfis <jann@mistrust.net> * More templating Signed-off-by: jannfis <jann@mistrust.net> * Update Signed-off-by: jannfis <jann@mistrust.net> * Make TemplateCommitMessage public Signed-off-by: jannfis <jann@mistrust.net> * Update Signed-off-by: jannfis <jann@mistrust.net> * Update Signed-off-by: jannfis <jann@mistrust.net> * Introduce git.CommitOptions{} Signed-off-by: jannfis <jann@mistrust.net> * Update documentation for commit message templates Signed-off-by: jannfis <jann@mistrust.net> * Add unit tests Signed-off-by: jannfis <jann@mistrust.net> * Update manifests Signed-off-by: jannfis <jann@mistrust.net> * Fix typo in docs Signed-off-by: jannfis <jann@mistrust.net> * Fix linter issues Signed-off-by: jannfis <jann@mistrust.net> * Fix linter issues Signed-off-by: jannfis <jann@mistrust.net>