Leonardo Luz Almeida
0cdd44bda7
chore: fix gitops-engine mod name so it can be referenced by external repos ( #26407 )
...
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
2026-02-12 09:29:40 -05:00
Linghao Su
24615c8ce8
fix(state): fix(controller): display correct SyncWave for hook resources #26208 ( #26240 )
...
Signed-off-by: linghaoSu <linghao.su@daocloud.io >
2026-02-07 00:28:18 +01:00
Artem Vdovin
57e9e5e201
fix: manifest-generate-paths for multisource git+helm ( #25531 )
...
Signed-off-by: Artem Vdovin <arte.vdovin@gmail.com >
Signed-off-by: Artem Vdovin <34456690+fm1ck3y@users.noreply.github.com >
Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com >
2026-02-03 14:57:48 +00:00
Arthur Outhenin-Chalandre
79b0981b05
fix: show pruning button when only Prune=confirm is present ( #23326 )
...
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@ledger.fr >
Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com >
2026-01-09 10:40:52 -05:00
Matthieu MOREL
4ea276860c
chore: refactor test functions to pass context from testing.T to fixtures ( #25134 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-11-02 13:39:24 +01:00
Matthieu MOREL
f26533ab37
chore: use Expecter Structs from mockery ( #25133 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-11-01 13:07:08 +00:00
Michael Crenshaw
3247474212
chore(refactor): use contexts in hydration operations ( #24431 )
...
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2025-09-08 11:14:48 -04:00
Alexandre Gaudreault
2c4dd51e15
chore(refactor): simplify auto-sync and alreadyAttemptedSync ( #23628 )
...
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com >
2025-07-14 14:36:05 +00:00
Alexandre Gaudreault
5c2b13f07c
fix: incorrect source used in CompareAppState ( #23630 )
...
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com >
2025-07-02 22:31:19 -04:00
Alexandre Gaudreault
5ca752429e
chore(refactor): remove redundant rollback argument ( #23627 )
...
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com >
2025-07-02 18:32:31 -04:00
Blake Pettersson
49514c9b4c
fix: minor oci fixes ( #23434 )
...
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com >
2025-06-18 00:45:34 -10:00
Michael Crenshaw
0fa3c3d67d
chore(lint): enable tparallel linter ( #23318 )
...
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2025-06-08 15:10:55 +02:00
Michael Crenshaw
45a8c68f2a
fix(controller): only update lastTransitionTime when needed ( #23018 )
...
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2025-05-20 11:26:07 -04:00
Oleksandr Saulyak
be3efbd98f
fix: settings request doesn't return default tracking method ( #22965 )
...
Signed-off-by: oleksandr-codefresh <oleksandr.saulyak@octopus.com >
Co-authored-by: Regina Voloshin <regina.voloshin@codefresh.io >
2025-05-15 11:26:47 +03:00
KoB
274e918fc8
fix(appcontroller): if a history limit is negative, automatically converted to 0 ( #22036 )
...
Signed-off-by: kingbj0429 <kingbj0429@lunit.io >
2025-05-08 16:45:08 -07:00
Michael Crenshaw
0ec46f6857
chore(ci): upgrade golangci-lint to v2 ( #22484 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-27 12:37:52 -04:00
Michael Crenshaw
d54ae98b20
fix(controller): wrong tracking annotation for malformed resources ( #22325 )
...
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2025-03-13 09:34:20 -04:00
Michael Crenshaw
bd37458896
chore(refactor): remove app destination inferrence logic ( #21189 )
...
* refactor: remove app destination inferrence logic
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* simplify
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* more fixes
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* more fixes
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* codegen
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* fix mocks
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* simplify
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* clusters all the way down
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* simplify
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* test
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* lint
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* tidy
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* be less radical
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
---------
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2025-01-13 13:15:42 -05:00
github-actions[bot]
4d9835927d
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 <350466+crenshaw-dev@users.noreply.github.com >
2025-01-10 16:14:00 -05:00
Matthieu MOREL
53bc19b5f2
chore: enable unused-parameter from revive ( #21365 )
...
* chore: enable unused-parameter from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* apply recommandations
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
---------
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-01-07 10:12:56 -05:00
Matthieu MOREL
c80325737e
chore: enable duplicated-imports from revive ( #21378 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-01-06 11:34:32 -05:00
Matthieu MOREL
9f0dc9402f
chore: enable redundant-import-alias from revive ( #21386 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-01-06 11:30:42 -05:00
Matthieu MOREL
ef55ba549b
chore: use dario.cat/mergo instead of github.com/imdario/mergo ( #21274 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-01-03 11:10:24 -05:00
Matthieu MOREL
13235ad477
chore: use testify instead of testing.Fatal ( #21258 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-01-02 18:27:41 -05:00
Matthieu MOREL
8a6f53d044
chore: enable errorf of perfsprint linter ( #21280 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-12-30 10:56:41 +02:00
Manuel Kieweg
8f0d3d0f6a
feat: Timestamp for Health Status ( #16972 ) ( #18660 )
...
* add lastTransitionTime to health status
Signed-off-by: Manuel Kieweg <mail@manuelkieweg.de >
* address first feedback
Signed-off-by: Manuel Kieweg <mail@manuelkieweg.de >
* set transition time if health status is unknown
Signed-off-by: Manuel Kieweg <mail@manuelkieweg.de >
* extend health improvement tests
Signed-off-by: Manuel Kieweg <mail@manuelkieweg.de >
* add apoplication controller test
Signed-off-by: Manuel Kieweg <mail@manuelkieweg.de >
* use require for NoError
Signed-off-by: Manuel Kieweg <mail@manuelkieweg.de >
* more extensive tests for health state changes
Signed-off-by: Manuel Kieweg <mail@manuelkieweg.de >
* Apply suggestions from code review
Co-authored-by: Blake Pettersson <blake.pettersson@gmail.com >
Signed-off-by: Manuel Kieweg <2939765+mkieweg@users.noreply.github.com >
* Code review suggestions
Signed-off-by: Manuel Kieweg <mail@manuelkieweg.de >
* remove obsolete assert
Signed-off-by: Manuel Kieweg <mail@manuelkieweg.de >
* Change LastTransitionTime field to pointer type
Due to implementation limitations, setting LastTransitionTime at the resource level is challenging.
Converting it to a pointer type allows it to be skipped at the resource level and prevents it from appearing
in .status.resources of the Application CR. Additionally, it doesn’t provide much value or have a known
use case right now.
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com >
* Resolve rebase conflicts
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com >
* Address review comment
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com >
* Trigger CI
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com >
---------
Signed-off-by: Manuel Kieweg <mail@manuelkieweg.de >
Signed-off-by: Manuel Kieweg <2939765+mkieweg@users.noreply.github.com >
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com >
Co-authored-by: Blake Pettersson <blake.pettersson@gmail.com >
Co-authored-by: Siddhesh Ghadi <sghadi1203@gmail.com >
2024-12-06 17:43:36 +05:30
Michael Crenshaw
e861b550e0
fix(diff): avoid cache miss in server-side diff ( #20605 )
...
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2024-10-30 21:35:23 -04:00
Michael Crenshaw
ec499bb070
fix(diff): avoid cache miss in server-side diff ( #20423 ) ( #20424 )
...
* fix(diff): avoid cache miss in server-side diff (#20423 )
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* fix silly mistakes
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
---------
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2024-10-18 09:36:42 -04:00
Matthieu MOREL
cc989251ef
chore: enable thelper linter ( #20405 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-16 17:37:03 +00:00
Michael Crenshaw
8647db1157
chore(controller): remove unnecessary field ( #20295 )
...
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2024-10-09 13:59:03 +03:00
Alexander Matyushentsev
03a16099b0
fix: support managing cluster with multiple argocd instances and annotation based tracking ( #20222 )
...
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com >
2024-10-04 17:54:37 -07:00
pasha-codefresh
aa990d6696
always execute sync if at least for one revision we identify if it was changed or no ( #19828 )
...
Signed-off-by: pashakostohrys <pavel@codefresh.io >
2024-09-07 12:12:33 -04:00
pasha-codefresh
473665795c
fix: manifest-generate-paths with autosync causes an undesirable refresh sync ( #19799 )
...
Signed-off-by: pashakostohrys <pavel@codefresh.io >
2024-09-06 11:40:48 -04:00
Matthieu MOREL
d7fc1bf2d7
chore: enable require-error rule from errorlint linter on controller folder ( #18690 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
Signed-off-by: pasha-codefresh <pavel@codefresh.io >
Co-authored-by: pasha-codefresh <pavel@codefresh.io >
2024-06-17 13:05:27 +00:00
Jorge Turrado Ferrero
0e531c956e
feat(application-controller): Add support for rollback multi-source applications ( #14124 )
...
* feat(application-controller): Add support for rollback multi-source applications
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* regenerate codegen after rebase
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* fix tests
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* fix front linting
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* update test
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* update codegen
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* Update server/application/application.go
Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com >
Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es >
* apply feedback
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* fix errors
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* add support for switching between single and multi
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* fix dereference issue
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* remove unnecesary code
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* Rebase master
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl >
* fix style
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* fix reference
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
* add a comment
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl >
---------
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es >
Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es >
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl >
Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com >
2024-06-10 17:54:07 -04:00
Matthieu MOREL
4a01f8a69a
chore: enable expected-actual rule from testifylint linter ( #18575 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-06-10 20:33:00 +00:00
Matthieu MOREL
32519c70a5
chore: enable error-nil rule from testifylint linter ( #18544 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-06-10 10:38:55 -04:00
Matthieu MOREL
44b8dc1a4c
chore: enable len and empty rules from testifylint linter ( #18516 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-06-07 15:12:50 -04:00
Alexy Mantha
4e46a5e8fa
feat(controller): use manifest generate path during comparison ( #14242 ) ( #15636 )
...
* squash commits
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* Update util/git/client.go
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* fix error message
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* add git client options
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* Update generated code
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* run fmt
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* fix tests
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* failed gen
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* tweak logs and rename cache
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* validate revisions
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* fix tests
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* fix tests
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* fmt
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* fix linting
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* fixes from review
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* generate
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* fix
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
* use log context
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
---------
Signed-off-by: Alexy Mantha <alexy@mantha.dev >
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2024-04-04 16:01:11 -04:00
Leonardo Luz Almeida
8786ec243a
chore: add more unit tests around useDiffCache function ( #17404 )
...
* chore: add more unit tests around useDiffCache function
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* fix doc
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
---------
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
2024-03-05 19:19:09 -05:00
Robin Lieb
0e67ed89ac
feat: add initiated by in history and rollback view ( #16654 )
...
Signed-off-by: Robin Lieb <robin.j.lieb@gmail.com >
2023-12-22 16:50:33 +00:00
Leonardo Luz Almeida
82ca7a7f9c
feat: Implement Server-Side Diff ( #13663 )
...
* feat: Implement Server-Side Diff
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* propagate the refreshtype to the diff config
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* Create the serverSideDiff config
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* chore: add featureflag utility package
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* remove featureflag package
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* add param
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* make ssd configurable with app annotation
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* add server-side-diff flags
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* apply the same logic regardless of the refresh type
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* fix gitops-engine reference
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* address review comments
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* Address review comments
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* docs: add docs related to server-side-diff
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* docs: update doc
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* Add config to include mutation webhooks
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* Address review comments
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* go mod update
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* Add sdd cache test case
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* fix ssd cache unit test
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* Update clidocs
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* update manifests
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* Fix procfile
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* additional doc changes
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* update gitops-engine version
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
---------
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
2023-12-18 20:37:13 +00:00
Leonardo Luz Almeida
4875b02b88
fix(controller): Address diff cache miss issues ( #16458 )
...
* fix: Address diff cache miss issues
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* validate mergo.Merge errors
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* Address review comments
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* Allow setting log level at the controller
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
* remove unnecessary log setup
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
---------
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com >
2023-11-29 11:08:29 -05:00
Takumi Sue
72245e8557
fix: failing lint and unit test ( #16275 )
...
Signed-off-by: mikutas <23391543+mikutas@users.noreply.github.com >
2023-11-08 13:28:21 +01:00
Blake Pettersson
d4dc155a89
fix: check for double definition ( #15670 )
...
* fix: check for double definition
As found in #13965 (and as a follow-up to #13999 ), we also need to
define what happens if _both_ managedNamespaceMetadata _and_ an
Application manifest are both defined for the same namespace.
The idea here is that if that happens, we emit an
`ApplicationConditionRepeatedResourceWarning`, and set the sync status
to `Unknown`, since it's unclear what is supposed to happen.
The user will then have the option of removing one of the two
definitions.
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com >
* fix: check for double definition
A simpler fix - don't add a managed namespace to the targetObjs list if
a namespace already exists in the application source.
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com >
* test: add test cases
This adds a test case showing that an ns manifest will override
`managedNamespaceMetadata` without failing horribly (as it currently
does on `HEAD`), as well as a "standard" mNMd diff vs live.
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com >
---------
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com >
2023-11-07 22:04:07 -05:00
gdsoumya
be2a01c231
feat: grace period for repo errors to prevent aggressive unknown sync state ( #16085 )
...
* feat: added grace period for repo errors to prevent aggressive sync state unknowns
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* feat: updated docs
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* fix: e2e test
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* feat: resolved review comments
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* feat: update unit test
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* fix: codegen
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
---------
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
Signed-off-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com >
2023-11-02 11:51:16 -04:00
Blake Pettersson
92406553b3
fix(controller): make managed namespaces more 'prune-proof' ( #13999 )
...
* fix: make managed namespaces more 'prune-proof'
In the cases where someone would want to set resource tracking on a
managed namespace, or if someone would want to migrate from having a
namespace in Git to using `managedNamespaceMetadata`, we need to take
steps to ensure that the namespace does not get pruned.
In order to do that, we add the live namespace to the list of
`targetObjs` (so that it's considered a part of the source even though
it's not).
Finally, we need to also ensure that the managed namespace is not
considered `OutOfSync` (due to the same reason as above).
This is a subset of #11350 , the main difference being that this commit
does not set resource tracking on its own, but can be opted into if
people choose to do so.
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com >
* refactor: extract managed namespace check
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com >
---------
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com >
2023-09-13 11:45:06 -04:00
Eng Zer Jun
03026997d1
chore: use t.Setenv to set env vars in tests ( #14377 )
...
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2023-07-06 19:50:08 -04:00
Lukas Wöhrl
59e6f2c3ac
fix: retain count and order of revisions for multi source apps ( #14108 ) ( #14113 )
...
* fix: retain order of revisions for multi source apps (#14108 )
Signed-off-by: Lukas Wöhrl <lukas.woehrl@plentymarkets.com >
* fix: retain revision for multi source app with ref-repos
Signed-off-by: Lukas Wöhrl <lukas.woehrl@plentymarkets.com >
* calculate commitSHA before quitting manifest generation
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
---------
Signed-off-by: Lukas Wöhrl <lukas.woehrl@plentymarkets.com >
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2023-06-20 12:08:21 -04:00
Jorge Turrado Ferrero
435d17504b
fix: Multi source apps resolve revision in .status field ( #14081 )
...
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl >
2023-06-15 17:43:25 -04:00