Commit Graph
173 Commits
Author SHA1 Message Date
Matthieu MORELandGitHub bc3c389196 chore: enable importas for k8s.io/apimachinery/pkg/api/errors (#21262)
Signed-off-by: Matthieu MOREL <[email protected]>
2025-01-03 17:09:37 +00:00
Matthieu MORELandGitHub 961e9bad5e chore: import k8s.io/api/core/v1 as corev1 (#21345)
Signed-off-by: Matthieu MOREL <[email protected]>
2025-01-03 11:10:00 -05:00
Matthieu MORELandGitHub 5051940c20 chore: use testify instead of testing.Fatal (#21258)
Signed-off-by: Matthieu MOREL <[email protected]>
2025-01-02 18:27:41 -05:00
Matthieu MORELandGitHub 7a212a833c chore: enable use-any from revive (#21282)
Signed-off-by: Matthieu MOREL <[email protected]>
2025-01-02 18:26:59 -05:00
dd6dc854e2 fix: avoid resources lock contention (#8172) (#20329)
* fix: avoid resources lock contention

Signed-off-by: Mykola Pelekh <[email protected]>

* feat: allow enabling batch events processing

Signed-off-by: Mykola Pelekh <[email protected]>

* fix: update ParseDurationFromEnv to handle duration in ms

Signed-off-by: Mykola Pelekh <[email protected]>

* feat: make eventProcessingInterval option configurable (default is 0.1s)

Signed-off-by: Mykola Pelekh <[email protected]>

* use upstream gitops-engine

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

---------

Signed-off-by: Mykola Pelekh <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2024-12-16 12:18:11 -05:00
Michael CrenshawandGitHub a2ea49ba1b chore: use new fake k8s client constructor (#21186)
Signed-off-by: Michael Crenshaw <[email protected]>
2024-12-16 14:49:30 +05:30
Matthieu MORELandGitHub 478219ef2e chore: enable perfsprint linter (#20685)
Signed-off-by: Matthieu MOREL <[email protected]>
2024-11-10 21:00:57 -05:00
c5d6abd398 fix(ui): display correct init info in Pod UI (#20387)
* fix(controller): change pod status calculate with sidecar

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

* fix(controller): add restartable sidecar count in total container display

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

* test UI, fix bugs

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

oops

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

indent

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

fix accidental duplication

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

* apply recommendation

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

---------

Signed-off-by: linghaoSu <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: linghaoSu <[email protected]>
2024-10-17 08:16:51 -04:00
626fb34e14 fix(controller/ui): fix pod with sidecar state (#19843)
* fix(controller): change pod status calculate with sidecar

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

* fix(controller): add restartable sidecar count in total container display

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

* fix(controller): update info test case conditions

Co-authored-by: Michael Crenshaw <[email protected]>
Signed-off-by: Linghao Su <[email protected]>

* fix(controller): add more test case to cover more conditions

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

* fix(ui): check is condition exist before for of

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

---------

Signed-off-by: linghaoSu <[email protected]>
Signed-off-by: Linghao Su <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2024-10-15 15:05:34 -04:00
Rungsikorn RungsikavarnichandGitHub a8daa2c710 feat(controller): support Istio ServiceEntry network node #20270 (#20273)
add serviceentry node to network diagram and link to workload
by workloadSelector label reference

Signed-off-by: zapkub <[email protected]>
2024-10-10 11:19:39 +03:00
ABBOUD MoncefandGitHub 590263c8d2 fix: handle incorrect cluster RESTconfig without panic (#20150)
Signed-off-by: cef <[email protected]>
2024-10-06 17:55:26 +03:00
Alexander MatyushentsevandGitHub bd895ce9c9 fix: support managing cluster with multiple argocd instances and annotation based tracking (#20222)
Signed-off-by: Alexander Matyushentsev <[email protected]>
2024-10-04 17:54:37 -07:00
33aee61334 feat: Add ignore-resources-tracking annotation to ignore resources update (#18343)
* feat: Add ignore-resources-tracking annotation to ignore resources update

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

* add doc

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

* update annotation doc

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

* refactor annotation usage base on comment feedback

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

* update annotation

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

* do not store boolean in resourceInfo

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

* typo

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

* update logic

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

* refactor

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

* add comment

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

* add tests

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

* update doc

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

* update code base on comment feedback

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

* update annotation doc

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

* fix goimport

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

* fix golint

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

* update comments

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

* update docs

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

* update annotation name

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

* rename annotation

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

* lint check

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

---------

Signed-off-by: kahoulei <[email protected]>
Co-authored-by: kahoulei <[email protected]>
Co-authored-by: Ishita Sequeira <[email protected]>
2024-07-29 11:26:50 -04:00
Andrii KorotkovandGitHub 3c49be9547 chore: Use more optimal iterate hierarchy v2 (#18929) (#18972)
Closes #18929
Helps with #18500
Use iterate hierarchy v2 to have a roughly linear performance for getting the resource tree instead of up to quadratic.

Signed-off-by: Andrii Korotkov <[email protected]>
2024-07-19 11:37:13 -04:00
Cayde6andGitHub 2d535b4aed chore(migrate): migrate mockery codegen to use packages(#18579) (#18617)
* chore(migrate): mockery migrate to packages

migrate interface
- remove go:generate
- generate mock

Signed-off-by: Jack-R-lantern <[email protected]>

* chore(migrate: mockery migrate to package

add mockgen stage
- add mockgen command to Makefile
- add generate-mock.sh
- add install mockery to install-codegen-go-tool.sh

Signed-off-by: Jack-R-lantern <[email protected]>

---------

Signed-off-by: Jack-R-lantern <[email protected]>
2024-07-02 10:48:38 -04:00
Matthieu MORELandGitHub 6580a86fb5 chore: enable errorlint linter on controller folder (#18596)
* chore: enable errorlint linter on controller folder

Signed-off-by: Matthieu MOREL <[email protected]>

* Update cache.go

Signed-off-by: Matthieu MOREL <[email protected]>

* Update cache.go

Signed-off-by: Matthieu MOREL <[email protected]>

---------

Signed-off-by: Matthieu MOREL <[email protected]>
2024-06-11 15:33:22 -04:00
Matthieu MORELandGitHub 417ff7b19e chore: enable gofumpt and whitespace linters (#18567)
Signed-off-by: Matthieu MOREL <[email protected]>
2024-06-11 15:41:55 +00:00
Matthieu MORELandGitHub 6042442da4 chore: enable error-nil rule from testifylint linter (#18544)
Signed-off-by: Matthieu MOREL <[email protected]>
2024-06-10 10:38:55 -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
5c010b3720 chore: automate mock generation v2 (#18371)
* Add go:generate statements for mockery

Signed-off-by: Will Roden <[email protected]>

* revert whitespace change

Signed-off-by: Will Roden <[email protected]>

* go generate everything

Signed-off-by: Will Roden <[email protected]>

* make gogen

Signed-off-by: Will Roden <[email protected]>

* chore: upgrade to mockery v2.40.2

Signed-off-by: Blake Pettersson <[email protected]>

---------

Signed-off-by: Will Roden <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
Co-authored-by: Will Roden <[email protected]>
2024-05-23 11:15:15 +03:00
f5b414aff7 fix: copy visited map #11699 (#12667)
This commit fixed an issue #11699 that caused a warning even if the cycle didn't exist.
Fix false cycle discovery by copying the visited resource map before recursively calling of getAppRecursive.

Fixes #11699

Signed-off-by: Arata Furukawa <[email protected]>
Co-authored-by: Blake Pettersson <[email protected]>
2024-05-14 15:37:20 -07:00
pasha-codefreshandGitHub 1b4df21984 Merge pull request from GHSA-9m6p-x4h2-6frq
* feat: limit jq.Run with timeout

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

* feat: ignore normalizer jq execution timeout as env variable

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

* feat: customize error message and add doc section

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

* feat: improve log and change a way how to get variable

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

* chore: fix import`s order

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

* chore: rename variable inside sts

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

* chore: fix import order

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

---------

Signed-off-by: pashakostohrys <[email protected]>
2024-04-26 12:24:02 +03:00
MangaalandGitHub 030f20d0ac feat: Enhance ArgoCD CLI: Dynamic Repo Server Retrieval with --core and --refresh Flags (#17613)
* add const key value for ComponentRepoServer

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

* update NewRepoServerClient() to look for service with  ComponentRepoServer labels , if the label exist construct label selector PortForward

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

* add comment for the new constants

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

* instead of passing nil which leads to  nil ptr referance error, pass empty ClusterSharding{}

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

* check for operator install repo server name

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

* handle empty nil ptr dereference error

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

* handle  nil prt dereference

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

* typo correction

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

* run clidocsgen

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

---------

Signed-off-by: Mangaal <[email protected]>
2024-03-29 14:49:16 -04:00
PelenandGitHub 05976bb252 fix: add retry condition with kube-apiserver sent GOAWAY (#17422)
Signed-off-by: penglongli <[email protected]>
2024-03-07 09:50:34 -05:00
Lukas WöhrlandGitHub 868368db69 fix: infer correct shard in statefulset setup (#17124, #17016) (#17167)
* fix: infer correct shard in statefulset setup

Signed-off-by: Lukas Wöhrl <[email protected]>

* fix the case if only a single replica

Signed-off-by: Lukas Wöhrl <[email protected]>

* fix: resolving pointer on shard compare

Signed-off-by: Lukas Wöhrl <[email protected]>

* fix: add readlock for cluster accessor

Signed-off-by: Lukas Wöhrl <[email protected]>

* fix: use defer to protect access of 'shard'

Signed-off-by: Lukas Wöhrl <[email protected]>

* fix: revert locking in getclusteraccessor

Signed-off-by: Lukas Wöhrl <[email protected]>

* fix: handle nil shard case

Signed-off-by: Lukas Wöhrl <[email protected]>

* fix: handle any nil shard value as false

Signed-off-by: Lukas Wöhrl <[email protected]>

* fix: handle nil case and fix another missing pointer dereference 

Signed-off-by: Lukas Wöhrl <[email protected]>

* revert

Signed-off-by: Lukas Wöhrl <[email protected]>

* fix: added tests and fixed some behaviour bugs

Signed-off-by: Lukas Wöhrl <[email protected]>

* test: add test to validate that Shard value is not overriden

Signed-off-by: Lukas Wöhrl <[email protected]>

* fix: added tests and fixe the case when server is changed inside a secret

Signed-off-by: Lukas Wöhrl <[email protected]>

* tests: add test cases for infering the shard logic

Signed-off-by: Lukas Wöhrl <[email protected]>

---------

Signed-off-by: Lukas Wöhrl <[email protected]>
2024-02-13 11:51:41 -05:00
c6f4dcdda9 fix: Use the cache for sharding (#15237)
* feat(sharding): use a cache

Signed-off-by: Alexandre Gaudreault <[email protected]>

* cluster cmd

Signed-off-by: Alexandre Gaudreault <[email protected]>

* - Assign shard 0 to in-cluster cluster and nil check updates
- Caching clusters while sharding: Fixing unit tests
- Update generated docs
- Debug e2e tests
- Default the shardNumber to the number of replicas if it is calculated to a higher value
- defered Unlock only when a lock is set
- Disabling temporarly other versions of k3s to check if e2e passes
- Do not fail if hostname format is not abc-n
- Fix unit test and skip some e2e
- Skip TestGitSubmoduleHTTPSSupport test
- Remove breaking defer c.lock.Unlock()
- Reverting testing all k3s version
- Default sharding fix
Signed-off-by: Akram Ben Aissi <[email protected]>

Signed-off-by: Akram Ben Aissi <[email protected]>

* fixes related to code review: renaming structure param, moving db initialisation

Signed-off-by: Akram Ben Aissi <[email protected]>

* Code review

Signed-off-by: Akram Ben Aissi <[email protected]>

* Set default shard to 0

Signed-off-by: Akram Ben Aissi <[email protected]>

* Set different default value for Sts and Deployment mode

Signed-off-by: Akram Ben Aissi <[email protected]>

* Expose ClusterShardingCache

Signed-off-by: Akram Ben Aissi <[email protected]>

* Removing use of argoDB.db for DistributionFunction

Signed-off-by: Akram Ben Aissi <[email protected]>

* Update generated documentation

Signed-off-by: Akram Ben Aissi <[email protected]>

* Fix comment about NoShardingDistributionFunction and NoShardingAlgorithm

Signed-off-by: Akram Ben Aissi <[email protected]>

---------

Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Akram Ben Aissi <[email protected]>
Co-authored-by: Alexandre Gaudreault <[email protected]>
2024-01-11 01:32:11 -05:00
Marco Maurer (-Kilchhofer)andGitHub 02a1a23954 chore: Use safe example domains defined in RFC 2606 (#16389) 2023-11-20 04:34:04 -05:00
Nick KandGitHub 37fe54beea fix: list manually provided external urls before generated ones (#13296)
Signed-off-by: Nick <[email protected]>
2023-10-19 19:42:45 +00:00
Nathan RomriellandGitHub 81ba58cdb0 fix: delete event cache deadlock test flakiness (#15964)
Signed-off-by: Nathan Romriell <[email protected]>
2023-10-16 14:10:56 -04:00
Brad WestandGitHub 1b26184a09 feat: Add ARGOCD_CLUSTER_CACHE_LIST_PAGE_BUFFER_SIZE environment variable (#15159)
Signed-off-by: Brad West <[email protected]>
2023-09-06 22:01:35 -04:00
gdsoumyaandGitHub d6987ece5d feat: auto respect rbac for discovery/sync (#14381)
feat: auto respect rbac for discovery/sync (#14381)

Signed-off-by: Soumya Ghosh Dastidar <[email protected]>
2023-09-06 10:41:30 -07:00
Michael CrenshawandGitHub f96e2e0df7 chore: wrap ComparisonError messages (#14886)
Signed-off-by: Michael Crenshaw <[email protected]>
2023-08-03 22:06:19 +00:00
Nathan RomriellandGitHub d1a06262e6 fix(controller): cache deadlock on delete and re-add cluster (#14780)
Signed-off-by: Nathan Romriell <[email protected]>
2023-07-31 09:04:01 -07:00
Alexandre GaudreaultandGitHub f7a6d93792 fix: deadlock in controller (#14304)
Signed-off-by: Alexandre Gaudreault <[email protected]>
2023-07-01 16:32:33 -04:00
bb25090d99 feat: add ignoreResourceUpdates to reduce controller CPU usage (#13534) (#13912)
* feat: ignore watched resource update

Signed-off-by: Alexandre Gaudreault <[email protected]>

* add doc and CLI

Signed-off-by: Alexandre Gaudreault <[email protected]>

* update doc index

Signed-off-by: Alexandre Gaudreault <[email protected]>

* add command

Signed-off-by: Alexandre Gaudreault <[email protected]>

* codegen

Signed-off-by: Alexandre Gaudreault <[email protected]>

* revert formatting

Signed-off-by: Alexandre Gaudreault <[email protected]>

* do not skip on health change

Signed-off-by: Alexandre Gaudreault <[email protected]>

* update doc

Signed-off-by: Alexandre Gaudreault <[email protected]>

* update logging to use context

Signed-off-by: Alexandre Gaudreault <[email protected]>

* fix typos. local build broken...

Signed-off-by: Alexandre Gaudreault <[email protected]>

* change after review

Signed-off-by: Alexandre Gaudreault <[email protected]>

* manifestHash to string

Signed-off-by: Alexandre Gaudreault <[email protected]>

* more doc

Signed-off-by: Alexandre Gaudreault <[email protected]>

* example for argoproj Application

Signed-off-by: Alexandre Gaudreault <[email protected]>

* add unit test for ignored logs

Signed-off-by: Alexandre Gaudreault <[email protected]>

* codegen

Signed-off-by: Alexandre Gaudreault <[email protected]>

* Update docs/operator-manual/reconcile.md

Co-authored-by: Michael Crenshaw <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>

* move hash and set log to debug

Signed-off-by: Alexandre Gaudreault <[email protected]>

* Update util/settings/settings.go

Co-authored-by: Michael Crenshaw <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>

* Update util/settings/settings.go

Co-authored-by: Michael Crenshaw <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>

* feature flag

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

* fix

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

* less aggressive managedFields ignore rule

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

* Update docs/operator-manual/reconcile.md

Co-authored-by: Alexandre Gaudreault <[email protected]>

* use local settings

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

* latest settings

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

* safety first

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

* since it's behind a feature flag, go aggressive on overrides

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

---------

Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2023-06-25 01:32:20 +00:00
Alexander MatyushentsevandGitHub 78e2f7b65c fix: avoid acquiring lock on two mutexes at the same time to prevent deadlock (#13636)
Signed-off-by: Alexander Matyushentsev <[email protected]>
2023-05-18 19:20:13 +00:00
Eng Zer JunandGitHub d8fade27d2 chore: replace github.com/ghodss/yaml with sigs.k8s.io/yaml (#13292)
At the time of making this commit, the package `github.com/ghodss/yaml`
is no longer actively maintained.

`sigs.k8s.io/yaml` is a permanent fork of `ghodss/yaml` and is actively
maintained by Kubernetes SIG.

Signed-off-by: Eng Zer Jun <[email protected]>
2023-05-04 18:06:56 -04:00
f98ca55a94 chore: Comment format (#12399)
* feat: Comment format

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

* Apply suggestions from code review

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

---------

Signed-off-by: fengshunli <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2023-03-29 19:41:22 +00:00
Tsubasa NagasawaandGitHub 0add57d255 fix: suppress Kubernetes API deprecation warnings from application controller (#12067)
Completely suppress warning logs only for log levels that are less than Debug.

Signed-off-by: toVersus <[email protected]>
2023-03-06 16:48:06 -05:00
e84ab9f36b fix: populate parentRefs correctly with multiple owners (#3910) (#11715)
* fix: populate parentRefs correctly with multiple owners

It previously simply wrote to key 0, instead of appending all owners

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

* test multiple resource owners

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

Signed-off-by: Jellyfrog <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2023-01-19 11:57:45 -05:00
Alex EftimieandGitHub 11e1243560 feature: allow a custom labels on any resource to surface in the UI (tree view node tags) (#11153)
* feature: allow a custom label on any resource to surface the UI

Signed-off-by: Alex Eftimie <[email protected]>
2022-11-18 22:29:22 +00:00
Prajilesh NandGitHub eeae87f157 chore: improve error logs (#10933)
Signed-off-by: Prajilesh <[email protected]>

Signed-off-by: Prajilesh <[email protected]>
2022-10-13 17:53:06 -04:00
jannfisandGitHub 75d334705a feat: Applications in any namespace (#9755)
* feat: Applications in any namespace

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

* Fix typo in CI

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

* Create argocd-e2e-external namespace

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

* Update from codegen

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

* Remove debug code

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

* Update help text for -N option to app create

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

* Wrap error when retrieving AppProject from cache

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

* Check for controller namespace first before matching on additional ns

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

* Improve TestAppProjectIsSourceNamespacePermitted unit test

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

* Get rid of some debug leftovers

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

* Better error wrapping; return IsNotFound as-is

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

* Updates from codegen

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

* We don't need AppShortName() anymore

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

* Update end-to-end tests to use annotation methods

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

* Add e2e tests to test for app creation in not permitted ns

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

* Remove deprecated code

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

* Remove dead code

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

* Add RBACName() method to application type

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

* Update from codegen

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

* Fix e2e test

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

* Update codegen

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

* Move RBAC name generation to an application receiver

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

* Fix sync window status in UI

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

* Fix pod logs viewer

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

* Fix application events in UI

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

* Fix application search in UI

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

* Fix yarn lint

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

* Only set up cluster-wide application informer when additional namespaces are specified

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

* Adapt e2e test to a changed error message

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

* Application namespace should be taken into account for create

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

* Use non-qualified application name as Helm release name

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

* Support --app-namespace in e2e tests

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

* Enable more e2e tests

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

* Increase e2e timeout for newly added tests

Signed-off-by: jannfis <[email protected]>
2022-08-10 11:39:10 +02:00
jannfisandGitHub 2c9fa95c4d fix: Make change of tracking method work at runtime (#9820)
* fix: Make change of tracking method work at runtime

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

* GetAppName() will figure tracking label or annotation on its own

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

* Correct test comments and add another test

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

* Add a read lock before getting cache settings

Signed-off-by: jannfis <[email protected]>
2022-07-06 18:53:38 +02:00
Yuan TangandGitHub c49c8d55a0 feat: Treat connection reset as a retryable error (#9739)
Signed-off-by: Yuan Tang <[email protected]>
2022-06-29 08:52:28 -07:00
a94795cdc4 Merge pull request from GHSA-2f5v-8r3f-8pww
* fix: application resource APIs must enforce project restrictions

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

* Fix unit tests

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

Co-authored-by: jannfis <[email protected]>
2022-03-22 10:57:30 -07:00
Yuan TangandGitHub 9e699c8361 feat: Support additional retryable errors (#8578)
* feat: Support additional retryable errors

Signed-off-by: Yuan Tang <[email protected]>

* Concise conditions

Signed-off-by: Yuan Tang <[email protected]>
2022-02-26 09:21:16 +01:00
Ben YeandGitHub 3308575dbb feat: expose cluster sync retry duration (#8481)
Signed-off-by: Ben Ye <[email protected]>
2022-02-21 22:44:22 +01:00
jannfisandGitHub 3cdc292899 feat: Make cluster cache sync more robust (#8438)
* feat: Support retry for list operations in cluster cache sync

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

* Fix default retries

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

* Pull in latest gitops-engine

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

* Default retry limit should be 1

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

* Make type conversion earlier

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

* Rename limit to attempt

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

* Revert Makefile change

Signed-off-by: jannfis <[email protected]>
2022-02-16 12:52:38 +01:00
Tristan KeenandGitHub 309159e5e3 fix: Allow all resources to add external links (#7923)
Signed-off-by: Tristan Keen <[email protected]>
2022-01-18 08:23:58 -08:00