Skip to content

Commit f377b7c

Browse files
authored
Merge pull request #185 from replicatedhq/laverya/add-multiline-and-yaml-to-example
add multiline redactor and yaml to example spec
2 parents 6d3321c + cd84cfa commit f377b7c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

sample-troubleshoot.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ spec:
1818
data: |
1919
my super secret password is abc123
2020
another redaction will go here
21+
- data:
22+
collectorName: yaml-data.yaml
23+
name: data
24+
data: |
25+
abc:
26+
xyz:
27+
- hello
28+
- world: "these are removed"
29+
bcd:
30+
abc:
31+
xyz:
32+
- these
33+
- remain
2134
---
2235
apiVersion: troubleshoot.replicated.com/v1beta1
2336
kind: Redactor
@@ -32,3 +45,8 @@ spec:
3245
- name: all files # as no file is specified, this redactor will run against all files
3346
regex:
3447
- (another)(?P<mask>.*)(here) # this will replace anything between the strings `another` and `here` with `***HIDDEN***`
48+
multiLine:
49+
- selector: 'S3_ENDPOINT' # remove the value in lines following those that contain the string S3_ENDPOINT
50+
redactor: '("value": ").*(")'
51+
yaml:
52+
- "abc.xyz.*" # redact all items in the array at key xyz within key abc in yaml documents

0 commit comments

Comments
 (0)