Commit Graph

40 Commits

Author SHA1 Message Date
Robert Brennan
af5b86e28c catch cache error (#324) 2020-06-03 15:55:13 -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
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
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
68fe23018a Feedback from PR 2020-03-23 09:27:36 -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
Robert Brennan
d2bb2f126b test extra controller versions 2020-02-26 19:26:18 +00:00
Robert Brennan
51f3eaa3f0 add more webhook test cases, suport for cronjobs v2alpha1 2020-02-25 20:21:22 +00:00
Robert Brennan
0da4ea69bf support some old controller versions 2020-02-25 16:25:34 +00:00
Nick Huanca
75f70352ba Additional Pod Controller Scans (#166)
**Changes**

- Refactored the way controllers work to be an interface
- Added configurable controllers to include in scans
- Added daemonsets, jobs and cronjobs in scans
- Added `ReplicationController` type controllers to the supported list
- Adjusted logic for failed YAML parsing to bubble up errors
- Added better logic for calculating summaries on cluster wide results
- Relocated responsibilities for counting types into validators vs spreading it around more packages
- Fixed bug where cronjob parsing was using wrong KIND
- Added fixtures for mocking new controller types
- Added example yamls to test scanning files
- Added functions to NamespacedResult(s) to reduce code complexity deep set iterations
- Refactored how results get added to namespacedresults so adding more later is easier
- Minor signature changes for interface implementing structs for controllers
2019-07-31 15:56:27 -06:00
Bobby Brennan
20bd32afb6 Rename ReactiveOps to Fairwinds (#180)
* Rename ReactiveOps to Fairwinds

* Rename ReactiveOps to Fairwinds
2019-07-30 15:29:09 -04:00
Bobby Brennan
ebfb4ea9a1 Add support for stateful sets (#145) 2019-06-13 07:59:01 -06:00
kimschles
b32a7afa77 update tests 2019-06-11 13:46:12 -06:00
kimschles
30ff6e6667 [WIP] change GetConfigOrDie to GetConfig 2019-06-10 13:34:09 -06:00
Bobby Brennan
d569605d0d add tests for creation time 2019-06-10 14:43:21 +00:00
Bobby Brennan
1d6248180e add display-name flag 2019-06-10 14:39:24 +00:00
Bobby Brennan
12e10f9111 skip resources that are empty strings (#131) 2019-06-04 16:28:58 -04:00
Rob Scott
9e1c714869 adding all auth providers to fix #114 2019-05-20 20:01:00 +02:00
Rob Scott
40bb07bb3a improving error handling 2019-05-16 17:07:34 -04:00
Bobby Brennan
250b61f6fd add resources test 2019-05-16 19:28:19 +00:00
Bobby Brennan
9bcb832bbd rename all the things 2019-05-09 15:59:23 +00:00
Bobby Brennan
520d6572e4 Add ability to audit a directory of files (#70)
* refactor kubernetes API usage

* add ability to audit directory

* refactor a bit

* fix return statement

* fix main.go

* add ability to audit multiple resources in a single file
2019-05-07 12:42:57 -04:00
jessicagreben
f058d43efc changes per comments 2019-02-08 14:31:33 -08:00
jessicagreben
e44fa9c712 add a test for dashboard, move stuff around to test easier, add fixtures 2019-02-08 12:50:37 -08:00
jessicagreben
b8a0d97ac4 fix lint errs 2019-02-07 09:08:38 -08:00
jessicagreben
bfcda872a9 merge master 2019-02-07 08:57:24 -08:00
Rob Scott
535735fbde fixes for linting, updating CI to fail when linting does 2019-02-07 11:28:30 -05:00
jessicagreben
af82943bee move clienset init to where it is used 2019-02-01 14:41:32 -08:00
Rob Scott
1bdd3be9f7 adding GCP auth support 2019-01-29 10:09:26 -05:00
jessicagreben
198277a9c9 add deploy admission webhook 2019-01-26 18:15:15 -08:00
jessicagreben
442b59d28a remove dup get kubeconf 2019-01-26 12:00:32 -08:00
jessicagreben
3eea0a82c0 make a little more pretty 2019-01-04 21:11:34 -08:00
jessicagreben
583d6fa4d2 im ugly but i work 2019-01-04 20:56:30 -08:00