Varsha Varadarajan
171ba02f4e
Remove TypeMeta from Diagnostic.
...
* The k8s API does not set TypeMeta on objects when the list API is used
2019-06-25 14:19:20 -04:00
Varsha Varadarajan
4be81f8fca
Add cli flag for output format
...
* Displays json if flag is provided, else display human readable string.
2019-06-25 14:19:20 -04:00
Varsha Varadarajan
65ba22e8d8
Use owner references to indicate the objects that refer to the problematic object.
...
* Change output format to json
2019-06-25 14:19:20 -04:00
Varsha Varadarajan
0320c5633a
Introduce Diagnostic struct to store check output
2019-06-25 09:42:27 -04:00
Varsha Varadarajan
257a14ed25
Merge pull request #20 from digitalocean/varsha/remove-quotas-and-limits
...
Remove quotas and limits from default-namespace check.
2019-06-25 08:37:02 -04:00
Varsha Varadarajan
19c60903e8
Remove quotas and limits from default-namespace check.
...
* It is perfectly reasonable to have resource quotas and limit ranges in the default namespace in order to avoid resource monopolization.
2019-06-24 11:51:32 -04:00
Varsha Varadarajan
1485fdb27a
Merge pull request #18 from digitalocean/varsha/readme
...
Update README.md
2019-06-24 09:51:42 -04:00
Varsha Varadarajan
d75ec23f00
Update README.md
2019-06-24 09:51:09 -04:00
Varsha Varadarajan
131a122193
Merge pull request #16 from digitalocean/varsha/refactor-latest-tag-check
...
Refactor latest-tag check to use docker distribution package.
2019-06-21 12:09:12 -04:00
Varsha Varadarajan
3e49be5d62
Refactor latest-tag check to use docker distribution package.
2019-06-21 12:08:30 -04:00
Varsha Varadarajan
787fc63030
Merge pull request #12 from digitalocean/varsha/pod-state
...
Pod state check: Checks the cluster for pods in unknown or failed state.
2019-06-20 15:32:15 -04:00
Varsha Varadarajan
500858d2d1
Change group for pod-state check to workload-health
2019-06-20 15:28:24 -04:00
Varsha Varadarajan
4a3e055e13
Pod state check: Checks the cluster for pods in unknown or failed state.
2019-06-20 15:14:44 -04:00
Varsha Varadarajan
b77cf1ea42
Merge pull request #15 from digitalocean/varsha/fully-qualified-image
...
Fully qualified image: Check if container uses fully qualified image names
2019-06-20 15:14:15 -04:00
Varsha Varadarajan
e8223d9204
Separate messages for malformed image and fully qualified image.
2019-06-20 15:13:43 -04:00
Varsha Varadarajan
d1469a006c
Fully qualified image: Check if container uses fully qualified image names
2019-06-20 10:17:56 -04:00
Varsha Varadarajan
b2768bdb56
Change assertion order in tests.
2019-06-19 19:19:09 -04:00
Varsha Varadarajan
049292bd67
Merge pull request #14 from digitalocean/varsha/privileged-containers
...
Privileged container check: Add warning if a privileged container container is found.
2019-06-19 19:14:53 -04:00
Varsha Varadarajan
2da3158afa
Privileged container check: Add warning if a privileged container container is found.
2019-06-19 08:41:46 -04:00
Varsha Varadarajan
716f6d8efd
Fix image names in test.
2019-06-18 17:00:17 -04:00
Varsha Varadarajan
159ca8317a
Rename latest_go_test to latest_tag_test
2019-06-18 16:20:00 -04:00
Varsha Varadarajan
e91923530c
Merge pull request #13 from digitalocean/varsha/add-tests
...
Add tests around metadata for each check
2019-06-18 14:07:47 -04:00
Varsha Varadarajan
283bf23c49
Add tests around metadata for each check
2019-06-18 14:06:58 -04:00
Varsha Varadarajan
3a3fc4f657
Merge pull request #11 from digitalocean/varsha/latest-tag
...
Latest tag check: Check if containers and initContainers in a pod use image with latest tag.
2019-06-18 11:55:39 -04:00
Varsha Varadarajan
e2ef830747
Latest tag check: Check if containers and initContainers in a pod use image with latest tag.
2019-06-18 11:54:23 -04:00
Varsha Varadarajan
ef42156f40
Merge pull request #9 from digitalocean/varsha/node-name
...
Add node name check: Checks for pods which use node name in the node selector.
2019-06-16 08:32:05 -04:00
Varsha Varadarajan
baa0bf739c
Add node name check: Checks for pods which use node name in the node selector.
2019-06-16 08:31:25 -04:00
Varsha Varadarajan
a8f09faa60
Merge pull request #10 from digitalocean/use-upstream-default-namespace-const
...
Use Kubernetes upstream constant for default namespace
2019-06-14 16:46:37 -04:00
Timo Reimann
880c78e9a5
Use Kubernetes upstream constant for default namespace
2019-06-14 22:41:21 +02:00
Varsha Varadarajan
8d1893c06d
Merge pull request #8 from digitalocean/varsha/namespace-check
...
Namespace check: Check if there are any k8s objects in the default namespace
2019-06-14 14:11:08 -04:00
Varsha Varadarajan
edca20d2a0
Iterate over each type of object list to check namespace
2019-06-14 14:10:28 -04:00
Varsha Varadarajan
3e795268b3
Add tests for the default namespace check.
2019-06-14 14:10:05 -04:00
Varsha Varadarajan
dded19b6f2
Move warn functions to the alert struct
2019-06-14 14:10:05 -04:00
Varsha Varadarajan
60b63afcd0
Introduce alert struct to store errors, warnings and mutex.
...
*Better names for the namespace check.
2019-06-14 14:10:05 -04:00
Varsha Varadarajan
fc66985ec3
Extract methods from Run, extract common methods
2019-06-14 14:09:50 -04:00
Varsha Varadarajan
c9c34c2fee
Check non default services in the default namespace.
2019-06-13 13:06:23 -04:00
Varsha Varadarajan
fee585542d
Namespace check: Check if there are k8s objects in the default namespace
2019-06-13 12:58:53 -04:00
Varsha Varadarajan
744341199b
Merge pull request #7 from digitalocean/varsha/remove-unused-const
...
Remove unused const left out during refactoring.
2019-06-12 16:24:43 -04:00
Varsha Varadarajan
4c8f2b22d1
Remove unused const left out during refactoring.
2019-06-12 16:18:36 -04:00
Adam Wolfe Gordon
4989a51f31
Merge pull request #6 from digitalocean/awg/check-imports
...
Import all checks from one package
2019-06-12 16:09:40 -04:00
Adam Wolfe Gordon
572e3b1cf9
Import all checks from one package
...
Introduce a "meta" check package, `checks/all`, that will import all the
other packages that contain checks. Then main or other packages that
want to use checks need only import `checks/all` and will get all the
checks registered.
This doesn't feel like a perfect solution, but I think it's tidy enough
to go with for the moment at least.
2019-06-12 16:09:13 -04:00
Varsha Varadarajan
16996ec947
Merge pull request #5 from digitalocean/awg/refactor
...
Factor kubernetes-related code out of main
2019-06-12 15:25:58 -04:00
Adam Wolfe Gordon
0dd7e3acde
Factor object fetching into the kube package
...
Add a `Client` type to the `kube` package that knows how to fetch
objects from a cluster. Use this package from main, and simplify main a
little bit now that the k8s-related code is moved out.
2019-06-12 14:46:30 -04:00
Adam Wolfe Gordon
e00d41aa65
Move KubeObjects into a new package
...
The new `kube` package will handle Kubernetes interactions.
2019-06-12 14:13:31 -04:00
Varsha Varadarajan
b7196f4964
Merge pull request #4 from digitalocean/varsha/run-checks
...
Add run command to run all checks
2019-06-12 13:21:12 -04:00
Varsha Varadarajan
c1c27fd576
Add run command to run all checks
...
* Optionally takes in a group flag to filter checks by group name.
* Optionally takes in a name flag to run a specific check.
2019-06-12 13:17:47 -04:00
Varsha Varadarajan
d4ef6bf02f
Merge pull request #3 from digitalocean/varsha/list-checks
...
Add list command to list all checks.
2019-06-11 17:01:03 -04:00
Varsha Varadarajan
fedefb22fe
Add list command to list all checks.
...
* Optionally takes in a group flag to filter checks by group name.
2019-06-11 16:40:32 -04:00
Varsha Varadarajan
0c9667c110
Merge pull request #2 from digitalocean/varsha/context
...
Provide a cli arg for context
2019-06-11 15:12:06 -04:00
Varsha Varadarajan
4ee6bfdf2b
Provide a cli arg for context
2019-06-11 14:49:14 -04:00