May Zhang
d60e1b2876
feat: get cluster connection status from cluster synced time ( #3604 )
...
feat: get cluster connection status from cluster synced time (#3604 )
2020-06-04 11:36:26 -07:00
Alexander Matyushentsev
03a0a192ec
refactor: upgrade gitops engine ( #3687 )
2020-06-01 20:23:07 +02:00
jannfis
bc83719037
chore: Fix complaints of golang-ci lint v1.26.0 ( #3673 )
2020-05-30 18:54:14 -07:00
Alexander Matyushentsev
ee64a4d9ca
fix: upgrade gitops engine dependency ( #3668 )
2020-05-28 18:42:01 -07:00
Josh Soref
a724574ede
chore: Spelling ( #3647 )
...
chore: Spelling (#3647 )
2020-05-27 10:22:13 -07:00
May Zhang
ac097f143c
Fixing how to compare two objects. ( #3636 )
2020-05-22 15:10:25 -07:00
Alexander Matyushentsev
4a12cbb231
fix: fix nil pointer dereference error after cluster deletion ( #3634 )
2020-05-22 09:35:04 -07:00
Alexander Matyushentsev
2f2f39c8a6
feat: upgrade gitops engine version ( #3624 )
2020-05-20 11:15:23 -07:00
Alexander Matyushentsev
fe8d47e0ea
feat: move engine code to argoproj/gitops-engine repo ( #3599 )
2020-05-15 14:39:29 -07:00
Alexander Matyushentsev
192ee93fc4
feat: Gitops engine ( #3066 )
...
* Move utils packages that are required for gitops engine under engine/pkg/utils package.
Following changes were implemented:
* util/health package is split into two parts: resource health assessement & resource health assessement and moved into engine/pkg/utils
* utils packages moved: Closer and Close method of util package moved into engine/pkg/utils/io package
* packages diff, errors, exec, json, kube and tracing moved into engine/pkg/utils
* Move single cluster caching into engine/kube/cache package
* move sync functionality to engine/kube/sync package
* remove dependency on metrics package from engine/pkg/utils/kube/cache
* move annotation label definitions into engine/pkg/utils/kube/sync
* make sure engine/pkg has no dependencies on other argo-cd packages
* allow importing engine as a go module
* implement a high-level interface that might be consumed by flux
* fix deadlock caused by cluster cache event handler
* ClusterCache should return error if requested group kind not found
* remove obsolete tests
* apply reviewer notes
2020-05-15 10:01:18 -07:00
jannfis
02b3c61fd9
feat: Introduce diff normalizer knobs and allow for ignoring aggregated cluster roles ( #2382 ) ( #3076 )
...
* Add the ability to ignore rules added by aggregated cluster roles
2020-05-13 13:34:43 -07:00
Alexander Matyushentsev
24fa758444
fix: enable redis retries; add redis request duration metric ( #3575 )
2020-05-12 14:39:18 -07:00
Alexander Matyushentsev
842a3d12f6
feat: add redis metrics to application controller and api server ( #3500 )
...
* add redis metrics to application controller and api server
* fix failed test
2020-04-28 12:52:03 -07:00
Alexander Matyushentsev
9b142c799a
fix: 'argocd sync' does not take into account IgnoreExtraneous annotation ( #3486 )
2020-04-28 08:49:07 -07:00
jannfis
ca42a375c2
Revert "feat: metrics, argocd_app_info adding syncpolicy info, argocd_cluster_info adding clustername ( #3411 )" ( #3443 )
...
This reverts commit 0214eb8d92 .
2020-04-20 08:55:38 -07:00
wecger
0214eb8d92
feat: metrics, argocd_app_info adding syncpolicy info, argocd_cluster_info adding clustername ( #3411 )
...
* extending metrics with syncpolicies and clustername
* extending metrics with syncpolicies and clustername: fixing tests
* extending metrics with syncpolicies and clustername: fixing order in labels
* extending metrics with syncpolicies and clustername: fixing lint issues
2020-04-20 11:32:20 +02:00
Alexander Matyushentsev
05f5a79923
feat: support separate Kustomize version per application ( #3414 )
2020-04-15 12:04:31 -07:00
jannfis
8ad928330f
chore: Fix a bunch of lint issues ( #3412 )
...
* chore: Fix linter complaints
2020-04-14 08:01:43 -07:00
Devan Goodwin
3d6ff9e903
Add a fake owner reference for ClusterServiceVersion. ( #3390 )
...
For anyone installing an Operator Lifecycle Manager operator, the ArgoCD
UI would show your OperatorGroup and Subscription, but would not detect
the resulting ClusterServiceVersion, and subsequent pods etc, limiting
the value of the UI in viewing overall status of your operator.
The CSV should not technically have an owner reference, so we add a fake
one in similar fashion to the pre-existing code above for endpoints. The
CSV then is linked to it's OperatorGroup via the olm.operatorGroup
annotation. The CSV has no link to it's Subscription or InstallPlan that
I can see. Adding an annotation to this might be something we could
pursue with OLM folks.
2020-04-09 11:20:37 -07:00
Andreas Kappler
8d082cc46e
feat: Introduce sync-option SkipDryRunOnMissingResource=true ( #2873 ) ( #3247 )
...
* feat: Introduce sync-option SkipDryRunOnMissingResource=true
2020-04-08 10:53:18 -07:00
jannfis
9fdd782854
fix: Do not panic while running hooks with short revision ( #3368 )
2020-04-05 23:54:09 -07:00
jannfis
c428e091ab
chore: Fix flaky test TestWatchCacheUpdated ( #3350 )
2020-04-03 18:26:37 +02:00
Alexander Matyushentsev
6411958be5
fix: pass APIVersions value to manifest generation request during app validation and during app manifests loading ( #3312 )
...
* fix: pass APIVersions value to manifest generation request during app validation and during app manifests loading
2020-03-30 13:36:46 -07:00
Alexander Matyushentsev
cdb8758b34
fix: use pagination while loading initial cluster state to avoid memory spikes ( #3299 )
2020-03-27 22:31:36 -07:00
jannfis
e26dace64d
Fix unparam errors from linter ( #3283 )
2020-03-26 09:31:22 -07:00
Alexander Matyushentsev
7fd7999e49
fix: increase max connections count to support clusters with very large number of CRDs ( #3278 )
2020-03-25 01:02:33 -07:00
Jesse Suen
5934bc4699
improvement: remove app name and project labels from reconcliation histogram to reduce cardinality ( #3271 )
2020-03-23 16:07:37 -07:00
Alexander Matyushentsev
ab80a8126b
fix: prevent syncing the same cluster cache multiple times due to race condition ( #3256 )
2020-03-19 12:44:23 -07:00
Jesse Suen
6905196665
feat: rework prometheus metrics to support richer dashboards ( #3254 )
...
* the argocd_app_sync_status and argocd_app_health_status are deprecated in place of additional labels to argocd_app_info
* argocd_app_created_time is deprecated
* deprecated labels can be re-enabled using ARGOCD_LEGACY_CONTROLLER_METRICS
* operation label was added to argocd_app_info to support a guauge of in-progress operations.
* dest_server label was added to k8s related counters to support filtering by cluster
2020-03-18 19:59:51 -07:00
Alexander Matyushentsev
1b5925a494
fix: stop trigging auto-syncing if app only need to prune resources and automated prune is disabled ( #3253 )
2020-03-18 14:19:54 -07:00
Alexander Matyushentsev
d500b27f1d
feat: store the name operation initator in the app CRD ( #3252 )
2020-03-18 13:32:39 -07:00
Jesse Suen
4bbce1cb22
perf: reduce unnecessary K8s calls for CRDs during reconciliation ( #3246 )
...
* reduce K8s calls for CRDs during reconciliation
* additional metric labels to k8s API requests (server, verb, kind, namespace)
2020-03-18 03:28:31 -07:00
Bruno Clermont
127f50d697
fix: really skip app requeing for some types of resources ( #3225 )
...
* Really skip app requeing
* Add new user
2020-03-17 23:03:01 -07:00
Alexander Matyushentsev
42d572306d
feat: use --api-versions during helm chart rendering ( #3243 )
2020-03-17 14:20:36 -07:00
Jesse Suen
476b09cbbf
feat: improve api-server and controller performance ( #3222 )
...
* group read comparison settings during app reconciliation
* Reduce lock contention in clusterInfo::ensureSynced(). Add getRepoObj stats
* Remove additional source of lock contention
* Exclude the coordination.k8s.io/Lease resource
Co-authored-by: Alexander Matyushentsev <amatyushentsev@gmail.com>
2020-03-16 11:51:59 -07:00
jannfis
0378819c54
Test for nil to prevent nil pointer dereference ( #3237 )
2020-03-16 09:43:44 -07:00
Alexander Matyushentsev
ebb06b8c89
fix: app reconciliation fails with panic: index out of ( #3233 )
2020-03-13 10:52:24 -07:00
Alex Collins
ebc048167c
feat: Supports the validate-false option at an app level. Closes #1063 ( #2542 )
2020-02-10 14:09:25 -08:00
Alexander Matyushentsev
32d5a05aef
fix: correctly replace cache in namespace isolation mode ( #3023 )
2020-01-23 16:19:29 -08:00
Alexander Matyushentsev
3bf8dc6fb0
fix: remove 'total' suffix from gauge prom metric ( #2976 )
2020-01-14 14:13:19 -08:00
Alexander Matyushentsev
a6cb9987a9
chore: sort imports in controller/sync_hooks.go and run 'dep ensure' ( #2972 )
2020-01-13 09:02:19 -08:00
Alexander Matyushentsev
3396a604fe
fix: rename cluster prometheus metrics according to the naming convention ( #2964 )
2020-01-10 13:27:03 -08:00
Alexander Matyushentsev
85bda0f793
fix: self-heal should retry syncing an application after specified delay ( #2950 )
...
* fix: self-heal should retry syncing an application after specified delay
2020-01-08 14:07:36 -08:00
Alexander Matyushentsev
08e50d4eb3
fix: use resource health for hook status evaluation ( #2938 )
2020-01-07 15:01:40 -08:00
Alexander Matyushentsev
76da1529d9
fix: limit number of parallel kubectl apply ( #2944 )
...
* fix: limit number of parallel kubectl apply
2020-01-06 22:28:42 -08:00
Alexander Matyushentsev
d4c0ee80ee
fix: collect cluster metrics in background; remove obsolete metrics ( #2923 )
2019-12-27 21:06:37 -08:00
Alexander Matyushentsev
6a0bb821cc
fix: stop using jsondiffpatch on clientside to render resource difference ( #2869 )
...
* fix: stop using jsondiffpatch on clientside to render resource difference (#2863 )
* Apply reviewer notes
2019-12-26 14:42:56 -08:00
Alexander Matyushentsev
9a23823f32
fix: removes redundant mutex usage in controller cache and adds cluster cache metrics ( #2898 )
2019-12-26 14:08:31 -08:00
Alexander Matyushentsev
aea81373eb
fix: prevent user from seeing/deleting resources not permitted in project ( #2908 ) ( #2910 )
2019-12-26 14:08:14 -08:00
Alexander Matyushentsev
e9ae87ae67
feat: namespace isolation ( #2176 ) ( #2839 )
...
feat: namespace isolation (#2176 ) (#2839 )
2019-12-17 07:50:11 -08:00