425 Commits

Author SHA1 Message Date
Andrew Lavery
428db221c3 Merge pull request #197 from replicatedhq/laverya/automate-krew-releases
automate krew releases
v0.9.33
2020-05-13 19:09:53 -04:00
Andrew Lavery
f6a5d40bfd Merge pull request #195 from replicatedhq/laverya/goreleaser-action-v2
use v2 of the goreleaser-action workflow
2020-05-13 19:07:55 -04:00
Andrew Lavery
8bc627d20f automate krew releases
this might work, might not - the action is only intended for one app per repo, but since it's all in one release I think it'll be fine
2020-05-13 19:04:27 -04:00
Andrew Lavery
7c95363afe Merge pull request #196 from replicatedhq/laverya/remove-unused-replace
remove an unused replace statement
2020-05-13 18:15:13 -04:00
Andrew Lavery
f7aebd0745 remove an unused replace statement 2020-05-13 16:55:41 -04:00
Andrew Lavery
523332268b Merge pull request #194 from replicatedhq/laverya/go-1.14
use go 1.14 in ci
2020-05-13 16:52:41 -04:00
Andrew Lavery
ca6f118c62 use v2 of the goreleaser-action workflow 2020-05-13 15:49:44 -04:00
Andrew Lavery
769d616ede use go 1.14 in ci 2020-05-13 15:35:10 -04:00
Salah Aldeen Al Saleh
620343e3a1 convert type BoolString to oneOf for api-schema (#193) v0.9.32 2020-05-11 12:57:27 -07:00
Marc Campbell
994978ccd8 Merge pull request #192 from replicatedhq/pg-collector
Parse postgres version output
2020-05-08 06:36:29 -07:00
Marc Campbell
0f31088bd1 Parse postgres version output 2020-05-07 19:41:59 -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
f377b7c1a8 Merge pull request #185 from replicatedhq/laverya/add-multiline-and-yaml-to-example
add multiline redactor and yaml to example spec
v0.9.31
2020-04-27 22:06:38 -04:00
Andrew Lavery
6d3321cb43 Merge pull request #186 from replicatedhq/laverya/redact-yaml-star-map-support
support * when redacting yaml maps
2020-04-27 22:03:40 -04:00
Andrew Lavery
15b100e0ee support * when redacting yaml maps 2020-04-27 22:01:04 -04:00
Andrew Lavery
cd84cfa629 add multiline redactor and yaml to example spec 2020-04-27 21:47:52 -04:00
Andrew Lavery
94ccf284b8 Merge pull request #184 from replicatedhq/laverya/custom-multiline-and-yaml-redactors
custom multiline and yaml redactors
2020-04-27 21:20:35 -04:00
Andrew Lavery
2f092ae4a1 add multiline redactor test 2020-04-27 20:52:01 -04:00
Andrew Lavery
56150c3345 add support for redacting items within yaml documents 2020-04-27 20:46:52 -04:00
Andrew Lavery
8f594e8764 add support for custom multiline redactors, add yaml redactors to spec 2020-04-27 16:50:25 -04:00
Andrew Lavery
7752a33268 Merge pull request #183 from replicatedhq/laverya/allow-specifying-multiple-redact-specs
allow specifying multiple redact specs
2020-04-27 16:28:58 -04:00
Andrew Lavery
94e27eb5e1 allow specifying multiple redact specs 2020-04-27 14:37:51 -04:00
Andrew Lavery
33580e9611 Merge pull request #182 from replicatedhq/laverya/no-regex-panic-when-not-found
analyzeRegexGroups should not have out of range error upon no match
v0.9.30
2020-04-23 15:29:23 -04:00
Andrew Lavery
09bc81e144 analyzeRegexGroups should not have out of range error upon no match 2020-04-23 15:26:01 -04:00
Andrew Lavery
7626f7d7d7 Merge pull request #181 from replicatedhq/laverya/use-glob-file-matching
use gobwas/glob, not filepath, file matching
v0.9.29
2020-04-23 13:23:31 -04:00
Andrew Lavery
37f75c1a3f use gobwas/glob, not filepath, file matching 2020-04-23 13:13:46 -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
Andrew Lavery
b1e1dbb42a Merge pull request #178 from replicatedhq/laverya/support-multidoc-collector-and-redactor-input
allow providing redactors as multidoc yaml after collectors
2020-04-21 14:15:51 -04: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
Andrew Lavery
a58913d1f6 allow providing redactors as multidoc yaml after collectors 2020-04-20 17:08:39 -04:00
Andrew Lavery
eb84fc64e1 Merge pull request #177 from replicatedhq/laverya/remove-per-collector-redactors
remove per-collector redactors
2020-04-20 15:56:59 -04:00
Andrew Lavery
087505f8e5 fix example yaml 2020-04-20 15:44:19 -04:00
Andrew Lavery
8b54c28b4b remove per-collector redactors 2020-04-20 14:59:15 -04:00
Andrew Lavery
7be40ddf16 Merge pull request #176 from replicatedhq/laverya/include-collect-global-redactors
honor global redactors from collect spec
2020-04-17 13:15:50 -04:00
Andrew Lavery
de9b832357 honor global redactors from collect spec 2020-04-17 13:06:52 -04:00
Andrew Lavery
fc65ceb5b4 Merge pull request #175 from replicatedhq/laverya/custom-redactors
last-mile and per-collector redactor specs
2020-04-16 14:22:10 -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
f06cd9e4a2 Merge pull request #172 from replicatedhq/laverya/refactor-byte-array-interfaces
refactor byte array interfaces
2020-04-14 18:14:57 -04:00
Andrew Lavery
7dc93ddade don't redact nil entries, discard them 2020-04-14 17:59:12 -04:00
Andrew Lavery
a7c4f04a63 convert remaining collectors to map[string][]byte format 2020-04-14 17:15:53 -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
406e1e6d1a Merge pull request #168 from replicatedhq/laverya/collect-logs-from-all-containers-in-pod
collect logs from all containers in a pod if no container is specified
2020-04-08 18:46:06 -04:00
Andrew Lavery
cbaf96691e collect logs from all containers in a pod if no container is specified 2020-04-08 16:05:44 -04:00
Andrew Lavery
4dfb02e7f7 Merge pull request #167 from replicatedhq/laverya/include-container-in-copy-path-if-provided
include the container name in the file copy path destination if provided
2020-04-06 18:29:45 -04:00
Andrew Lavery
e19a5dee38 Merge pull request #166 from replicatedhq/laverya/respect-secret-includevalue-flag
support the 'includeValue' flag for secrets
2020-04-06 18:09:43 -04:00
Andrew Lavery
2c495b8a7a include the container name in the file copy path destination if provided 2020-04-06 18:02:37 -04:00
Andrew Lavery
c3646bacd9 don't use a default filename in paths 2020-04-06 18:01:13 -04:00