summaryrefslogtreecommitdiff
path: root/pkg
AgeCommit message (Collapse)Author
2024-05-29optimize codePasha Kostohrys
Signed-off-by: Pasha Kostohrys <pavel@codefresh.io>
2024-05-29fix: getHelmParamNamesFromAnnotation should take info from container image ↵Pasha Kostohrys
for prevent code duplication Signed-off-by: Pasha Kostohrys <pavel@codefresh.io>
2024-05-29Merge remote-tracking branch ↵Pasha Kostohrys
'askhari/fix/set-default-image-alias-with-helmvalues' into fix/set-default-image-alias-with-helmvalues
2024-05-29change: make NormalizedSymbolicName() method publicDavid Vidal Villamide
fix: use NormalizedSymbolicName() to retrieve name and version from annotations for Helm app types Signed-off-by: David Vidal Villamide <david@askharilabs.com>
2024-05-29Merge branch 'master' of ↵Pasha Kostohrys
https://github.com/argoproj-labs/argocd-image-updater into fix/set-default-image-alias-with-helmvalues
2024-05-27chore(deps): Pull in Git client changes from Argo CD v2.11.2jannfis
Signed-off-by: jannfis <jann@mistrust.net>
2024-05-27fix: crash due to store is nil (#723)pasha-codefresh
Signed-off-by: Pasha Kostohrys <pavel@codefresh.io>
2024-05-27add: GetImagesAndAliasesFromApplication to retrieve images with aliasesDavid Vidal Villamide
fix: now using alias to retrieve annotations when updating Helm type app Signed-off-by: David Vidal Villamide <david@askharilabs.com>
2024-05-12Merge pull request #624 from testwill/typopasha-codefresh
fix: typo
2023-12-07feat: add support for separate GitHub app credentials (#649)Dustin Lactin
* feat: add support for separate GitHub app credentials stored as Kubernetes secrets Signed-off-by: Dustin Lactin <dustin.lactin@gmail.com> * test: added tests for consuming GitHub app credentials from a secret Signed-off-by: Dustin Lactin <dustin.lactin@gmail.com> * fix: added GitHub App placeholder words to expect.txt Signed-off-by: Dustin Lactin <dustin.lactin@gmail.com> * fix: checking for errors when converting GitHub App and Installation IDs Signed-off-by: Dustin Lactin <dustin.lactin@gmail.com> * fix: added more descriptive error messages for string-to-number conversions Signed-off-by: Dustin Lactin <dustin.lactin@gmail.com> --------- Signed-off-by: Dustin Lactin <dustin.lactin@gmail.com>
2023-12-04fix: typoguoguangwu
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
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-09-28chore(deps): Bump semver package version from v1 to v3 (#625)Jinsu Park
Signed-off-by: Jinsu Park <dev.umijs@gmail.com>
2023-09-21fix: Add support for ocischema.DeserializedImageIndex manifest type (#618)Jesse Bye
* fix: Add support for ocischema.DeserializedImageIndex manifest type Signed-off-by: Jesse Bye <8467862+jessebye@users.noreply.github.com> * more informative error logging Signed-off-by: Jesse Bye <8467862+jessebye@users.noreply.github.com> --------- Signed-off-by: Jesse Bye <8467862+jessebye@users.noreply.github.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-08-10chore(deps): upgrade dependencies for fix vulnerabilities (#599)MichaelKo
Signed-off-by: Viacheslav Sychov <viacheslav.sychov@gmail.com>
2023-07-30chore: Update to newer argocd version for better API compatibility (#594)Jesse Bye
* fix: update go mods to use newer argocd app definition Signed-off-by: Jesse Bye <8467862+jessebye@users.noreply.github.com> * fix deps and tests Signed-off-by: Jesse Bye <8467862+jessebye@users.noreply.github.com> * fix spelling Signed-off-by: Jesse Bye <8467862+jessebye@users.noreply.github.com> --------- Signed-off-by: Jesse Bye <8467862+jessebye@users.noreply.github.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-08chore: Preallocate space for slices with known size (#575)satoru
Signed-off-by: satoru <satorulogic@gmail.com>
2023-07-05fix: kustomize write target issue (#583)Daniel Mavis
Signed-off-by: Daniel Mavis <daniel.mavis@faa.gov>
2023-06-08fix: ensure deterministic results for SortBySemVer() (#559)Kent Rancourt
Signed-off-by: Kent <kent.rancourt@gmail.com>
2023-01-21fix: Also request OCI media type image index (#524)jannfis
Signed-off-by: jannfis <jann@mistrust.net> Signed-off-by: jannfis <jann@mistrust.net>
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-07-20feat: Rename confusing update strategies (#456)Jaideep Rao
* rename strategies * update docs
2022-03-13docs: Refactor docs (#398)jannfis
* docs: Refactor docs Signed-off-by: jannfis <jann@mistrust.net> * Fix spelling Signed-off-by: jannfis <jann@mistrust.net> * Fix spelling Signed-off-by: jannfis <jann@mistrust.net> * Sort expect Signed-off-by: jannfis <jann@mistrust.net>
2022-03-13chore: Bump docker distribution v2 (#395)jannfis
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-29feat: Support app-wide update-strategy annotations (#338)Jan Pieper
* feat: support app-wide update-strategy annotations * refactor: rename constants for pull-secret annotations
2022-01-27feat: Automatic inferring of registry from image prefix (#369)jannfis
* feat: Infer registry from prefix Signed-off-by: jannfis <jann@mistrust.net> * Add missing registry testdata Signed-off-by: jannfis <jann@mistrust.net> * Correctly handle default registries Signed-off-by: jannfis <jann@mistrust.net>
2022-01-24feat: support filtering apps by label in CLI (#368)Jaideep Raghunath Rao
2022-01-23fix: hardcode buildDate so it can be updated by ld at build time (#366) (#367)Nick
2022-01-22chore: Log out warning about tagsortmode (#363)jannfis
Signed-off-by: jannfis <jann@mistrust.net>
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-14fix: Use endpoint's transport also for token handler (#349)jannfis
Signed-off-by: jannfis <jann@mistrust.net>
2022-01-12feat: Improve visibility for skipped apps (#344)jannfis
Signed-off-by: jannfis <jann@mistrust.net>
2022-01-12refactor: rename VersionSortMode to UpdateStrategy (#343)jannfis
Signed-off-by: jannfis <jann@mistrust.net>
2022-01-12fix: Fetch metadata for multi-arch images with latest strategy (#342)jannfis
* fix: Fetch metadata for multi-arch images with latest strategy Signed-off-by: jannfis <jann@mistrust.net> * Simplify Signed-off-by: jannfis <jann@mistrust.net>
2022-01-11feat: Support manifestlist and multi-arch images (#341)jannfis
* feat: Support manifestlist and multi-arch images Signed-off-by: jannfis <jann@mistrust.net> * Add unit test Signed-off-by: jannfis <jann@mistrust.net> * Fix linter issue Signed-off-by: jannfis <jann@mistrust.net>
2022-01-09feat: use HTTP_PROXY in transport object for registry endpoint if defined in ↵Daniel Klockenkämper
environment (#300)
2022-01-09fix: Do not retrieve metadata for all tags with digest strategy (#337)jannfis
* fix: Only fetch metadata for constraint tag in digest strategx Signed-off-by: jannfis <jann@mistrust.net> * fix: Only fetch metadata for constraint tag in digest strategx Signed-off-by: jannfis <jann@mistrust.net> * fix: Only fetch metadata for constraint tag in digest strategx 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
2022-01-07fix: Request correct mediatype for v1 manifests (#333)jannfis
Signed-off-by: jannfis <jann@mistrust.net>
2022-01-05fix: Fix registry authentication when URL has slash suffix (#331)jannfis
* fix: Fix registry authentication when URL has slash suffix Signed-off-by: jannfis <jann@mistrust.net> * Fix format string Signed-off-by: jannfis <jann@mistrust.net>
2021-12-16feat: Enable auth plugins for Kubernetes client (#307)Vincent van Dam
* Enable auth plugins * Run go mod tidy
2021-12-16fix: assume kustomize application type if write back target is configured (#309)noah
2021-12-16fix: Invalid image reference format when using digest strategy with helm ↵Agorgianitis Loukas
charts (#317) * fix: Invalid reference format when using digest strategy with helm charts Signed-off-by: Agorgianitis Loukas <agorglouk@gmail.com> * Rename image.GetFullTag() to image.GetTagWithDigest() for clarity * Add unit tests for image.GetTagWithDigest()
2021-11-05fix: typo in warning message (#291)Jan Pieper
Signed-off-by: Jan Pieper <kontakt@jan-pieper.info>
2021-10-28fix: Use correct registry URL for parsing pull secrets (#285)jannfis
2021-10-26chore: Update and refactor Git client (#283)jannfis
Signed-off-by: jannfis <jann@mistrust.net>