Commit Graph
91 Commits
Author SHA1 Message Date
Andrew Lavery 669cb2a145 send redaction report 2020-05-20 13:08:10 -04:00
Salah Aldeen Al Saleh 620343e3a1 convert type BoolString to oneOf for api-schema (#193) 2020-05-11 12:57:27 -07:00
Andrew Lavery 94e27eb5e1 allow specifying multiple redact specs 2020-04-27 14:37:51 -04:00
Andrew Lavery a58913d1f6 allow providing redactors as multidoc yaml after collectors 2020-04-20 17:08:39 -04:00
Andrew Lavery 8b54c28b4b remove per-collector redactors 2020-04-20 14:59:15 -04:00
Andrew Lavery de9b832357 honor global redactors from collect spec 2020-04-17 13:06:52 -04:00
Andrew Lavery d016e3269c add global and per-collector redactors
add redact type, and begin wiring global redactors

use per-collector redactors

add a test of the 'data' collector and redaction

handle literal string replacements

remove redundant types and redact calls

add proper redactor type, foundations of global redactors

accept global redactors from the CLI, include sample redaction spec
2020-04-16 14:03:00 -04:00
Andrew Lavery 527fe16bcc reduce marshal/unmarshal passes by returning map[string][]byte
WIP
2020-04-14 16:37:51 -04:00
Andrew Lavery 75ab7bb917 fix downloadAnalyzerSpec function too 2020-03-25 17:32:52 -04:00
Andrew Lavery 9692d5a457 attempt to read the file at the provided path before trying url 2020-03-25 17:27:16 -04:00
Marc Campbell bd71222715 Removing more unused code 2020-03-23 10:01:30 -07:00
Marc Campbell 983aaaacea Defining types in a package 2020-03-10 17:32:16 +00:00
Marc Campbell e74101070d Refactor 2020-03-10 01:07:57 +00:00
Marc Campbell 1dda832933 Export runCollectors 2020-03-10 00:04:23 +00:00
Jeremy Cohn 2158dee58d Merge pull request #147 from replicatedhq/jeremy/fix-analyze
Added spec support to `analyze` function in support-bundle
2020-03-06 14:27:48 -08:00
Jeremy Cohn f6a56a9def A few minor updates in the analyze usage 2020-03-06 14:26:38 -07:00
Jeremy Cohn 63a81314bb Updated to allow an analyze spec from URL
This commit includes the following changes:
1. Updated to allow a analyze spec from URL
2. Removed spec flag
The analyzer spec is a positional argument consistent with preflight.
2020-03-06 13:33:29 -07:00
Jeremy Cohn 1d352298e1 Added spec support to analyze function in support-bundle 2020-03-05 17:43:34 -08:00
Marc Campbell 6c212e24f0 Better marshaling 2020-03-06 01:15:49 +00:00
Marc Campbell d81cff0d67 BoolString can only unmarshal as json 2020-03-06 00:33:39 +00:00
Marc Campbell 346c751bdf Merge pull request #134 from replicatedhq/openapischema
Generate OpenAPISchema
2020-03-05 13:42:21 -08:00
divolgin 5a7b155093 Better integration with embedded kots clusters 2020-03-03 22:30:47 +00:00
divolgin 78d2364199 Don't verify TLS certs on support bundle requests 2020-02-14 23:08:42 +00:00
Marc Campbell c91a8ee60d Filenames that match kubeval 2020-02-10 21:31:36 +00:00
Marc Campbell 899d5d7672 Generate OpenAPISchema 2020-02-10 21:17:11 +00:00
Andrew Lavery f67cd31e80 fix order of arguments in calls to DownloadAndAnalyze 2020-01-20 18:17:15 -08:00
divolgin 052c932e05 Treat analyzer errors as preflight check fails 2020-01-09 22:48:54 +00:00
Andrew Lavery 0a04256d62 include ServerGroupsAndResources in troubleshoot cluster-resources
also run cluster-resources collector even when some rbac permissions are missing

print progress message when skipping a collector due to rbac issues

include a sample troubleshoot yaml spec in the repo
2020-01-08 15:10:32 -08:00
Andrew Lavery 0fcf473f85 include versionNumber as spec.versionNumber to follow k8s struct standards 2020-01-07 17:21:59 -08:00
Andrew Lavery f9b9dea1c6 only include version number, not full build info 2020-01-07 17:04:41 -08:00
Andrew Lavery 1928f00b0f include binary version info in 'version.yaml' troubleshoot file 2020-01-07 16:28:57 -08:00
Andrew Lavery 55f2ed44bf Check RBAC before running collectors 2019-12-31 21:32:42 +00:00
divolgin 89250b0a87 include errors in messages on failures 2019-12-26 16:32:17 +00:00
divolgin 8e1cb615a5 Don't print usage on error and no double-logging 2019-12-24 22:04:43 +00:00
Marc Campbell 806b2fbb41 Revert "Regex analyzer" 2019-12-18 17:30:16 -08:00
Marc Campbell 518f826fc2 Regex analyzer 2019-12-19 00:49:16 +00:00
Marc Campbell 4338b22505 Merge pull request #95 from replicatedhq/github-actions
GitHub actions
2019-12-18 08:01:22 -08:00
Marc Campbell ca9106e7c9 Merge pull request #93 from replicatedhq/no-collector-cmd
Remove manager and collector commands
2019-12-18 07:14:43 -08:00
Marc Campbell 7ac973647d Add json output 2019-12-18 15:12:11 +00:00
Marc Campbell 7ab1734cb6 Remove manager and collector commands 2019-12-18 01:52:06 +00:00
Marc Campbell 98f926b46c Support for optional collectors and analyzers 2019-12-18 01:38:51 +00:00
Marc Campbell d0a0d925bb Cleaning up name / collectorName 2019-12-18 01:12:16 +00:00
Andrew Lavery fd257b5618 Merge pull request #91 from bearium/stdout_results
Added Namespace for Collection and Allows for tests to output to stdout
2019-12-13 15:01:54 -08:00
bearium 3afe32cd1e change global fail to return result 2019-12-11 07:34:15 -05:00
bearium e13cb35c82 added std out support and namespace functionality 2019-12-02 09:56:07 -05:00
Marc Campbell 9c4fa8ac14 Add version command 2019-11-30 00:03:43 +00:00
Marc Campbell 8a1bb8a422 isURL 2019-10-29 19:56:29 +00:00
Marc Campbell 14ace5294f Analyze spec 2019-10-29 19:45:25 +00:00
divolgin 60ca35a5a6 use file paths specified by the spec instead of hardcoded ones 2019-10-25 16:23:22 +00:00
divolgin 3ea71c1d5a support multiple containers in pod logs 2019-10-24 18:27:53 +00:00