Commit Graph

85 Commits

Author SHA1 Message Date
Salah Aldeen Al Saleh
53626bb025 Default BoolString to string and bool to 0 (#211)
* default boolstring to string and bool to 0
2020-06-01 14:55:33 -07:00
divolgin
47e715a350 Don't panic when parsing resources, return error 2020-05-27 19:56:23 +00:00
Andrew Lavery
22d397cc7b Merge pull request #190 from MikaelSmith/error-on-connect-fail
Report errors connecting to the database
2020-05-13 19:38:20 -04:00
Michael Smith
4b9680be8b Report errors connecting to the database
If the postgres collector encounters an error, report it as a failure in
the analyzer. Otherwise the error is completely suppressed.

Fixes #187.
2020-05-07 17:04:10 -07:00
Andrew Lavery
20033b12d5 Merge pull request #188 from replicatedhq/laverya/improve-unexpected-operator-error
include the operator in the 'unexpected operator' error message
2020-05-07 18:39:59 -04:00
Andrew Lavery
f795f909b3 include all the data 2020-05-07 18:15:33 -04:00
Andrew Lavery
b3828b175d include the operator in the 'unexpected operator' error message 2020-05-07 18:04:37 -04:00
Andrew Lavery
fa84d3fbd3 Merge pull request #180 from MikaelSmith/fix-allocatable-sum
Fix sum(memoryAllocatable) and sum(podAllocatable)
2020-05-07 17:42:32 -04:00
Andrew Lavery
09bc81e144 analyzeRegexGroups should not have out of range error upon no match 2020-04-23 15:26:01 -04:00
Michael Smith
8f8b8b2c78 Fix sum(memoryAllocatable) and sum(podAllocatable)
Fixes `sum(memoryAllocatable)` and `sum(podAllocatable)`. These
previously tested the wrong resource (cpuAllocatable).

Also refactor comparison functions to unify resolving properties and add
more testing.

Fixes #179.
2020-04-21 11:39:31 -07:00
Michael Smith
1605b56090 Simplify tests by reusing same node data
Remove repetition across test cases that made it hard to read. Tweaks
tests where needed so they can all use the same node data. Also corrects
a test where the description didn't match the test.
2020-04-21 11:08:03 -07:00
Ashwathi Shiva
d1c45f1456 fixes path handling in windows as well 2020-03-26 00:58:40 -04:00
Marc Campbell
bd71222715 Removing more unused code 2020-03-23 10:01:30 -07:00
Marc Campbell
8f78827002 Redis 2020-03-20 11:03:49 -07:00
Marc Campbell
77eba55ee8 Abstract, add mysql 2020-03-20 07:19:03 -07:00
Marc Campbell
562a565f1f Adding postgres analyzer 2020-03-19 18:28:13 -07:00
mzaneri
86b745d6c2 Update distribution.go 2020-03-12 16:01:27 -07:00
mzaneri
c773ebd894 Update distribution.go 2020-03-12 14:56:03 -07:00
Michael
a1c5247c8b REFACTOR create helper functions for analyzeDistribution 2020-03-12 18:01:05 +00:00
Andrew Lavery
1c66eed2cd move multitype package here from kots 2020-03-09 17:37:27 -07:00
divolgin
983481da07 5 is definitely not more than 20.... 2020-03-09 19:07:46 +00:00
Marc Campbell
6563290de9 More clear solutino: 2020-03-07 21:30:41 +00:00
Marc Campbell
ff627dcf83 Fix equality in regex analyzer 2020-03-07 21:28:17 +00:00
Marc Campbell
6277101574 Use bool string for exclude value 2020-03-05 23:35:21 +00:00
Salah Al Saleh
648564eb4d Fix text_analyze_test (#142) 2020-02-25 16:42:00 -08:00
GraysonNull
42288a4ff3 add IconURI to insights 2020-02-18 21:23:44 +00:00
divolgin
1f9e478a78 Merge pull request #135 from replicatedhq/divolgin/icons
New icons for analyzers
2020-02-14 10:20:41 -08:00
Frank Shotwell
1a117220cb add aks detection 2020-02-12 17:57:38 +00:00
divolgin
1c79403934 New icons for analyzers 2020-02-11 23:52:29 +00:00
Marc Campbell
e94b152733 strings.fields 2020-02-06 19:54:02 +00:00
Marc Campbell
717ba13614 Sum, min, max and count aggregation functions 2020-02-06 19:30:50 +00:00
Marc Campbell
6765e6c030 Working on aggregation functions 2020-02-06 19:10:22 +00:00
Marc Campbell
eea2315c52 Aggregate analyzers for node troubleshoot: 2020-02-06 10:06:09 -08:00
Frank Shotwell
130aa88f3a Merge pull request #128 from replicatedhq/scope
Add scope test instrumentation
2020-01-31 12:31:21 -08:00
Frank Shotwell
f8870e5fc0 move scope instrumentation to handle table-driven tests 2020-01-31 06:25:07 +00:00
Frank Shotwell
10b2941c57 Add scope test instrumentation 2020-01-30 21:01:06 +00:00
Marc Campbell
879c3a67d7 Node resource analyzer 2020-01-29 23:16:40 +00:00
Marc Campbell
299f3e0da7 Add node analyzers 2020-01-29 13:49:02 -08:00
emosbaugh
3982e2023b Treat empty preflight when condition as true (#125)
* Treat empty preflight when condition as true

* add test

* fix
2020-01-23 11:05:54 -08:00
emosbaugh
8eddab69ce Collect statefulsets (#123)
* Collect statefulsets

* go version
2020-01-22 16:43:47 -08:00
Andrew Lavery
58b642426b Merge pull request #122 from replicatedhq/laverya/properly-identify-openshift-clusters-on-eks
EKS clusters do not have masters within the node list
2020-01-21 12:17:46 -08:00
Andrew Lavery
6fe9e2e7e6 EKS clusters do not have masters within the node list 2020-01-21 12:10:29 -08:00
Jeremy Cohn
db48de2494 Identify kurl clusters with distribution analyzer 2020-01-21 03:11:39 +00:00
Andrew Lavery
0379274bb8 if cluster-resources/resources.json, do not fail the distribution analyzer
that file was not collected in v0.9.15 and earlier, so we shouldn't require it - particularly since the microk8s/dockerdesktop/eks/gke/DO detection doesn't depend on it
2020-01-09 12:07:36 -08:00
Andrew Lavery
033524a83a identify openshift clusters with distribution analyzer 2020-01-08 15:38:32 -08:00
divolgin
89250b0a87 include errors in messages on failures 2019-12-26 16:32:17 +00:00
Marc Campbell
2b97e524e3 No more controllers 2019-12-24 19:38:47 +00:00
Marc Campbell
3955dab9bc Removing the CRD 2019-12-24 19:26:26 +00:00
Marc Campbell
9de6b3fffd Merge pull request #99 from ashwathishiva/custom_text_analyzer
Adding a text analyzer
2019-12-23 12:45:32 -08:00
Marc Campbell
806b2fbb41 Revert "Regex analyzer" 2019-12-18 17:30:16 -08:00