Commit Graph
18 Commits
Author SHA1 Message Date
sivchariandGitHub b97525c11e chore: upgrade Go to 1.24 (#22242)
Signed-off-by: sivchari <[email protected]>
2025-03-10 10:14:41 -04:00
8334da36f2 Bump major version to 3 (#21410)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: crenshaw-dev <[email protected]>
2025-01-10 16:14:00 -05:00
Matthieu MORELandGitHub c85bb38a83 chore: enable errorf of perfsprint linter (#21280)
Signed-off-by: Matthieu MOREL <[email protected]>
2024-12-30 10:56:41 +02:00
Matthieu MORELandGitHub 0e4ac0278a chore: enable thelper linter (#20405)
Signed-off-by: Matthieu MOREL <[email protected]>
2024-10-16 17:37:03 +00:00
4157bcd4c9 feat: transmit manifest-generate-path resources to the cmp-server for plugin-based applications (#19209)
* chore: transmit manifest-generate-path resources to the cmp-server for plugin-based applications
Signed-off-by: Javier Solana <[email protected]>

* use SecureJoin
Signed-off-by: Javier Solana <[email protected]>

* make cmp manifests generation using manifest generate path annotation configurable by environment variable
Signed-off-by: Javier Solana <[email protected]>

* fix missing doc running codegen-local
Signed-off-by: Javier Solana <[email protected]>

* set reposerver.plugin.enable.manifests.generation.using.annotations false by default
Signed-off-by: Javier Solana <[email protected]>

* define ARGOCD_REPO_SERVER_PLUGIN_ENABLE_GENERATE_MANIFESTS_USING_MANIFEST_GENERATE_PATHS_ANNOTATION properly
Signed-off-by: Javier Solana <[email protected]>

* define ARGOCD_REPO_SERVER_PLUGIN_ENABLE_GENERATE_MANIFESTS_USING_MANIFEST_GENERATE_PATHS_ANNOTATION properly
Signed-off-by: Javier Solana <[email protected]>

* Fix conflict
Signed-off-by: Javier Solana <[email protected]>

* autogenerate install manifests
Signed-off-by: Javier Solana <[email protected]>

* add note about common root path calculation for manifest paths annotation
Signed-off-by: Javier Solana <[email protected]>

* log common root path calculated
Signed-off-by: Javier Solana <[email protected]>

* app path must be the lower common path
Signed-off-by: Javier Solana <[email protected]>

* tweaks

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Javier Solana <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2024-09-24 12:14:02 -04:00
Matthieu MORELandGitHub 483a5e85a0 chore: enable errorlint linter on util folder (#18588)
Signed-off-by: Matthieu MOREL <[email protected]>
2024-06-11 10:42:32 -04:00
Matthieu MORELandGitHub 8421ddbc37 chore: enable len and empty rules from testifylint linter (#18516)
Signed-off-by: Matthieu MOREL <[email protected]>
2024-06-07 15:12:50 -04:00
Jiacheng XuandGitHub 5a36e2e949 fix: CMPv2 does not allow symlinks to adjacent files in same git repo. Fixes #13342 (#13360)
fix: CMPv2 does not allow symlinks to adjacent files in same git repo. Fixes #13342 (#13360)

Signed-off-by: Jiacheng Xu <[email protected]>
2023-05-08 16:29:08 -07:00
Michael CrenshawandGitHub 6046aa5e42 fix: surface errors when compressing files (#13491)
Signed-off-by: Michael Crenshaw <[email protected]>
2023-05-08 19:57:13 +00:00
Alexander MatyushentsevandGitHub fd7619ed03 feat: allow CMP plugins to preserve repo files mode (#12940)
* feat: allow CMP plugins to preserve repo files mode

Signed-off-by: Alexander Matyushentsev <[email protected]>

* implement missing e2e test

Signed-off-by: Alexander Matyushentsev <[email protected]>

---------

Signed-off-by: Alexander Matyushentsev <[email protected]>
2023-03-22 12:15:19 -04:00
5918367282 feat: parameterized config management plugins (#9135) (#9216)
* feat: parameterized CMPs

Signed-off-by: Michael Crenshaw <[email protected]>

* values types for parameters

Signed-off-by: Michael Crenshaw <[email protected]>

* Add types for CMP announcement

Signed-off-by: zachaller <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>

* Reorg

Signed-off-by: zachaller <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>

* finish type

Signed-off-by: zachaller <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>

* First pass at working GetParametersAnnouncement

Signed-off-by: zachaller <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>

* Typos

Signed-off-by: zachaller <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>

* Make all fields optional

Signed-off-by: zachaller <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>

* Make sure response makes it to repo server

Signed-off-by: zachaller <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>

* Refactor for testing

Signed-off-by: zachaller <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>

* lint

Signed-off-by: Michael Crenshaw <[email protected]>

* send build env to param announcement gen

Signed-off-by: Michael Crenshaw <[email protected]>

* test parameter announcement

Signed-off-by: Michael Crenshaw <[email protected]>

* tests

Signed-off-by: Michael Crenshaw <[email protected]>

* environ tests

Signed-off-by: Michael Crenshaw <[email protected]>

* Rename workdir to app dir

Signed-off-by: zachaller <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>

* handle empty command, start ui work (#11)

* Add types for CMP announcement

Signed-off-by: zachaller <[email protected]>

* Reorg

Signed-off-by: zachaller <[email protected]>

* finish type

Signed-off-by: zachaller <[email protected]>

* First pass at working GetParametersAnnouncement

Signed-off-by: zachaller <[email protected]>

* Typos

Signed-off-by: zachaller <[email protected]>

* Make all fields optional

Signed-off-by: zachaller <[email protected]>

* Make sure response makes it to repo server

Signed-off-by: zachaller <[email protected]>

* Refactor for testing

Signed-off-by: zachaller <[email protected]>

* values types for parameters

Signed-off-by: Michael Crenshaw <[email protected]>

* lint

Signed-off-by: Michael Crenshaw <[email protected]>

* send build env to param announcement gen

Signed-off-by: Michael Crenshaw <[email protected]>

* test parameter announcement

* tests

Signed-off-by: Michael Crenshaw <[email protected]>

* environ tests

Signed-off-by: Michael Crenshaw <[email protected]>

* Rename workdir to app dir

Signed-off-by: zachaller <[email protected]>

* handle empty command, start ui work

Signed-off-by: Michael Crenshaw <[email protected]>

* fix order

Signed-off-by: Michael Crenshaw <[email protected]>

* fix map merging, make params read-only

Signed-off-by: Michael Crenshaw <[email protected]>

Co-authored-by: zachaller <[email protected]>

* Add helm PoC example plugin

Signed-off-by: zachaller <[email protected]>

* example as kustomize overlay

Signed-off-by: Michael Crenshaw <[email protected]>

* Parameterized cmps docs (#12)

* use printf instead of echo

Signed-off-by: Michael Crenshaw <[email protected]>

* docs

Signed-off-by: Michael Crenshaw <[email protected]>

* test for temp dir cleanup

Signed-off-by: Michael Crenshaw <[email protected]>

* handle empty params

Signed-off-by: Michael Crenshaw <[email protected]>

* handle empty values

Signed-off-by: Michael Crenshaw <[email protected]>

* consolidate types

Signed-off-by: Michael Crenshaw <[email protected]>

* fix tests

Signed-off-by: Michael Crenshaw <[email protected]>

* docs

Signed-off-by: Michael Crenshaw <[email protected]>

* docs

Signed-off-by: Michael Crenshaw <[email protected]>

* remove duplicate info

Signed-off-by: Michael Crenshaw <[email protected]>

* add warning about param announcements vs param values

Signed-off-by: Michael Crenshaw <[email protected]>

* tests (#13)

Signed-off-by: Michael Crenshaw <[email protected]>

* tests

Signed-off-by: Michael Crenshaw <[email protected]>

* fix types

Signed-off-by: Michael Crenshaw <[email protected]>

* fix test

Signed-off-by: Michael Crenshaw <[email protected]>

* fix codegen

Signed-off-by: Michael Crenshaw <[email protected]>

* fix codegen

Signed-off-by: Michael Crenshaw <[email protected]>

* revert test hack

Signed-off-by: Michael Crenshaw <[email protected]>

* docs correction

Signed-off-by: Michael Crenshaw <[email protected]>

* fix indentation

Signed-off-by: Michael Crenshaw <[email protected]>

* fix spacing

Signed-off-by: CI <[email protected]>

* move util function to util file and add test

Signed-off-by: CI <[email protected]>

* wrap error

Signed-off-by: CI <[email protected]>

* correct version number

Signed-off-by: CI <[email protected]>

* document necessity of collectionType param

Signed-off-by: CI <[email protected]>

* remove part of error message that's not useful (dir name is now randomized)

Signed-off-by: CI <[email protected]>

* fix things so that they are not broken

Signed-off-by: CI <[email protected]>

* don't close file before caller gets a chance to use it

Signed-off-by: CI <[email protected]>

* codegen

Signed-off-by: Michael Crenshaw <[email protected]>

* fix test

Signed-off-by: Michael Crenshaw <[email protected]>

* comments

Signed-off-by: Michael Crenshaw <[email protected]>

* fix test

Signed-off-by: Michael Crenshaw <[email protected]>

* DON'T PANIC

Signed-off-by: Michael Crenshaw <[email protected]>

Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: CI <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: zachaller <[email protected]>
2022-11-29 13:08:32 -05:00
JakeandGitHub 83afc75cd6 feat: server-side manifest generation for local diff (#8145) (#10019)
* feat: server-side manifest generation for diff (#8145)

Signed-off-by: notfromstatefarm <[email protected]>

* fix docs, mocks, ineffectual err

Signed-off-by: notfromstatefarm <[email protected]>

* fix CMPs, ineffectual err

Signed-off-by: notfromstatefarm <[email protected]>

* refactor

Signed-off-by: notfromstatefarm <[email protected]>

* add unit tests

Signed-off-by: notfromstatefarm <[email protected]>

* handle err

Signed-off-by: notfromstatefarm <[email protected]>

* add size limits and inclusion filters

Signed-off-by: notfromstatefarm <[email protected]>

* fix docs

Signed-off-by: notfromstatefarm <[email protected]>

* fix errors, increase defaults

Signed-off-by: notfromstatefarm <[email protected]>

* use quantity, wrap errors, add security fields to logs, deprecation warning

Signed-off-by: notfromstatefarm <[email protected]>

* have e2e test use server side generation

Signed-off-by: notfromstatefarm <[email protected]>

* nits

Signed-off-by: notfromstatefarm <[email protected]>

* remove unused import

Signed-off-by: notfromstatefarm <[email protected]>

* fix merge conflict

Signed-off-by: notfromstatefarm <[email protected]>

* fix conflicts

Signed-off-by: notfromstatefarm <[email protected]>

* fix e2e test

Signed-off-by: notfromstatefarm <[email protected]>

* add deprecation/breaking change info

Signed-off-by: notfromstatefarm <[email protected]>

* remove security logging stuff, will be in a separate PR

Signed-off-by: notfromstatefarm <[email protected]>

* more specific docs

Signed-off-by: notfromstatefarm <[email protected]>

* add security logging

Signed-off-by: notfromstatefarm <[email protected]>

Signed-off-by: notfromstatefarm <[email protected]>
2022-08-17 14:48:50 -04:00
jannfisandGitHub d65d195d33 chore: Replace deprecated ioutil in util packages (#9848)
Signed-off-by: jannfis <[email protected]>
2022-07-06 12:45:04 -04:00
JakeandGitHub d86d61897c fix: configurable CMP tar exclusions (#9675) (#9789)
* feat: configurable CMP tar exclusions

Signed-off-by: notfromstatefarm <[email protected]>

* rename cmp to plugin

Signed-off-by: notfromstatefarm <[email protected]>

* add test for tar stream exclusions

Signed-off-by: notfromstatefarm <[email protected]>

* fix tests

Signed-off-by: notfromstatefarm <[email protected]>

* update cmp guide

Signed-off-by: notfromstatefarm <[email protected]>

* fully parameterize

Signed-off-by: notfromstatefarm <[email protected]>
2022-06-29 16:27:02 -04:00
ls0fandGitHub 8ac2e9ffe9 receiveFile memory optimization: do not use bytes.buffer but write directly to file (#9415)
Signed-off-by: ls0f <[email protected]>
2022-05-16 11:33:16 -04:00
Michael CrenshawandGitHub 9c08dc2d61 chore: remove orphaned code (#9171)
Signed-off-by: Michael Crenshaw <[email protected]>
2022-04-26 22:00:35 +03:00
Ilya LesikovandGitHub 71eb97d55e fix: env var values with equal sign ignored (#8793)
Environment variable with "=" in its value is not passed to sidecar
config management plugin, but ignored.

Signed-off-by: Ilya Lesikov <[email protected]>
2022-03-23 10:00:36 -04:00
Leonardo Luz AlmeidaandGitHub 5dee23fb72 feat: remove shared repo volume between repo-server and cmp-server (#8600)
feat: remove shared repo volume between repo-server and cmp-server (#8600)

Signed-off-by: Leonardo Luz Almeida <[email protected]>
2022-03-15 12:06:21 -07:00