Skip to content

Commit

Permalink
add multiline redactor and yaml to example spec
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Apr 28, 2020
1 parent 94ccf28 commit cd84cfa
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions sample-troubleshoot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ spec:
data: |
my super secret password is abc123
another redaction will go here
- data:
collectorName: yaml-data.yaml
name: data
data: |
abc:
xyz:
- hello
- world: "these are removed"
bcd:
abc:
xyz:
- these
- remain
---
apiVersion: troubleshoot.replicated.com/v1beta1
kind: Redactor
Expand All @@ -32,3 +45,8 @@ spec:
- name: all files # as no file is specified, this redactor will run against all files
regex:
- (another)(?P<mask>.*)(here) # this will replace anything between the strings `another` and `here` with `***HIDDEN***`
multiLine:
- selector: 'S3_ENDPOINT' # remove the value in lines following those that contain the string S3_ENDPOINT
redactor: '("value": ").*(")'
yaml:
- "abc.xyz.*" # redact all items in the array at key xyz within key abc in yaml documents

0 comments on commit cd84cfa

Please sign in to comment.