Samuel Barabas
4e9aa21cea
Show controller check results on dashboard ( #364 )
...
As I mentioned in https://github.com/FairwindsOps/polaris/issues/351 ,
custom check results for `target: Controller` have not been shown on the
Dashboard.
2020-06-29 13:48:02 -04:00
Robert Brennan
5705f81911
throw error when severity isn't set for custom check ( #360 )
...
* throw error when severity isn't set for custom check
* fix syntax
2020-06-22 16:53:15 -04:00
Robert Brennan
b4e3d40f4b
Add priority class check, some test infra ( #342 )
...
* add check for priority-class
* add test message
* lint
2020-06-22 16:34:48 -04:00
Robert Brennan
69bed16e4f
don't error out when resolving parent resource ( #358 )
2020-06-22 16:05:23 -04:00
Huang Huang
5b173cf4a7
Support read yaml contents of workload from stdin ( #353 )
2020-06-22 14:19:51 -04:00
hgoscenski-vail
0a0720a26c
Adds option to exempt an entire controller from checks via config file ( #350 )
...
This adds the ability to exempt a controller from all checks similar to
the annotation for "exempt" which exempts all checks.
I added the tests to go with this as well as for the IsActionable
function.
2020-06-22 14:18:23 -04:00
Huang Huang
b26c4be8d6
Support audit files which use \r or \r\n as newline character ( #343 )
2020-06-16 10:46:28 -04:00
Robert Brennan
3e9c270ac7
fix zero-state ( #341 )
...
* fix zero-state
* fix lint error
* fix denom checks
2020-06-10 16:53:40 -04:00
baderbuddy
bf6e41566d
Don't assume all objects have pods. ( #329 )
...
* Don't assume all objects have pods.
* Test service is ignored
* Fix test
* Fix comment on test
2020-06-10 10:22:59 -04:00
jordandoig
d44138bead
Update filter section styles
2020-06-03 20:26:25 -06:00
jordandoig
eb21b030c2
Add filters javascript
2020-06-03 20:19:18 -06:00
jordandoig
3061756a55
Filter by namespaces in query, style expandable filter section, check checkboxes on page load
2020-06-03 20:19:18 -06:00
jordandoig
2964280976
Add namespace filters section
2020-06-03 20:19:18 -06:00
Robert Brennan
af5b86e28c
catch cache error ( #324 )
2020-06-03 15:55:13 -04:00
Robert Brennan
1021f6b1d7
fix basepath link ( #319 )
2020-06-03 15:42:06 -04:00
Robert Brennan
27faab919c
handle case where RBAC is missing for a CRD ( #305 )
...
* handle case where RBAC is missing for a CRD
* handle error
2020-05-21 06:27:15 -04:00
Robert Brennan
2ac6a2b540
Change error to danger ( #299 )
...
* rename 'error' to 'danger'
* update dashboard
* fix docs
* update deploy configs
2020-05-19 08:41:07 -04:00
Robert Brennan
9d81c393de
Pack config.yaml in Docker ( #298 )
...
* update examples
* pack config.yaml in Docker
2020-05-18 17:16:16 -04:00
Robert Brennan
b557786325
Stop webhook from preventing scaling events ( #293 )
...
* test deployment scaling
* stop watching pods in the webhook
* fix check
* add pod check back
* skip webhook for owned pods
2020-05-18 15:17:21 -04:00
Robert Brennan
ac9412920f
sort results on dashboard ( #295 )
...
This reverts commit 0c671d0f62 .
2020-05-18 15:01:12 -04:00
baderbuddy
d50d9c81f8
Add the capability for controller level checks ( #285 )
...
* Add controller level checks
* Add check for multipleReplicas
* Fixed spec
* Add controller level check
* Move controller schema checks to their own function.
2020-05-18 14:57:35 -04:00
Robert Brennan
0c671d0f62
Revert "sort results on dashboard"
...
This reverts commit e9064dfddc .
2020-05-18 17:21:22 +00:00
Robert Brennan
e9064dfddc
sort results on dashboard
2020-05-18 17:18:23 +00:00
baderbuddy
69621f7034
Improve performance ( #278 )
...
* rename root fs check
* speed up docker build
* refactor webhook to be more generic
* delete controllers pkg
* revert deploy
* fix example config
* remove controllersToScan config
* fix lint error
* fix webhook name
* FileSystem -> Filesystem
* update deps
* skip node owners
* clean up meta tracking
* Cache results of dynamic queries
* Dynamically pick types to list.
* Fix unit tests
* Fix the other tests I missed
* Fix container test
* Fix issues from PR feedback
Co-authored-by: Robert Brennan <bobby.brennan@gmail.com >
Co-authored-by: Robert Brennan <accounts@rbren.io >
2020-05-01 13:29:29 -04:00
Robert Brennan
6792fba91f
Delete controllers package ( #270 )
...
* rename root fs check
* speed up docker build
* refactor webhook to be more generic
* delete controllers pkg
* revert deploy
* fix example config
* remove controllersToScan config
* fix lint error
* fix webhook name
* FileSystem -> Filesystem
* update deps
* skip node owners
* clean up meta tracking
Co-authored-by: Robert Brennan <bobby.brennan@gmail.com >
2020-04-27 10:43:02 -04:00
Bader Boland
3c46f405a9
Cleanup SupportedControllers
2020-03-25 16:50:12 -04:00
Bader Boland
a5828a2d3b
Fix tests
2020-03-25 14:23:18 -04:00
Bader Boland
5769acf820
deduplicate results right away
2020-03-25 13:25:26 -04:00
Bader Boland
68fe23018a
Feedback from PR
2020-03-23 09:27:36 -04:00
Bader Boland
61ecb69ab1
Adding support for v2alpha1 for cron
2020-03-17 17:00:30 -04:00
Bader Boland
c43ace22a3
Add support for CronJobs in support versions list
2020-03-17 16:59:15 -04:00
Bader Boland
fb0d7c5d82
Add additional logging
2020-03-17 16:19:58 -04:00
Bader Boland
8c769e445c
Cut out duplicitive code.
2020-03-17 13:23:58 -04:00
Bader Boland
3c685279be
Cut out logic specific to controller types
2020-03-17 12:41:44 -04:00
Bader Boland
7fdebfc4db
Fix tests
2020-03-17 09:19:33 -04:00
Bader Boland
0d3fe6130a
Remove unnecessary queries
2020-03-16 16:48:57 -04:00
Bader Boland
bb34be7e02
Dynamically retrieve parents
2020-03-16 16:41:16 -04:00
baderbuddy
fe55216e2a
Merge branch 'master' into bb/openshift
2020-03-16 13:07:20 -04:00
Robert Brennan
d2bb2f126b
test extra controller versions
2020-02-26 19:26:18 +00:00
Robert Brennan
efd0ec85b9
fix lint error
2020-02-25 21:27:53 +00:00
Robert Brennan
dad526245d
don't exit if webhook registration fails
2020-02-25 21:23:31 +00:00
Robert Brennan
51f3eaa3f0
add more webhook test cases, suport for cronjobs v2alpha1
2020-02-25 20:21:22 +00:00
Robert Brennan
574a1483eb
add to supported controllers list
2020-02-25 17:49:20 +00:00
Robert Brennan
0da4ea69bf
support some old controller versions
2020-02-25 16:25:34 +00:00
Bader Boland
31de106ba8
Added check for parent and rollup to parent.
2020-01-31 14:10:53 -05:00
Bader Boland
aaa54cc401
Directly return 0 for divide by 0
2020-01-31 12:57:26 -05:00
Bader Boland
51d639e2ef
Prevent divide by 0
2020-01-31 12:56:53 -05:00
Bader Boland
7f71a352a7
Remove kebab case
2020-01-28 09:34:52 -05:00
Bader Boland
56bba70ef3
Add ability to exclude individual tests
2020-01-24 08:53:34 -05:00
Robert Brennan
bcc1cc5384
remove unused code
2020-01-14 14:50:35 +00:00