From cd84cfa6291da4c4e135ccff3f00309cc217e078 Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Mon, 27 Apr 2020 21:47:52 -0400 Subject: [PATCH] add multiline redactor and yaml to example spec --- sample-troubleshoot.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sample-troubleshoot.yaml b/sample-troubleshoot.yaml index 7eb4c4218..dd155cfda 100644 --- a/sample-troubleshoot.yaml +++ b/sample-troubleshoot.yaml @@ -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 @@ -32,3 +45,8 @@ spec: - name: all files # as no file is specified, this redactor will run against all files regex: - (another)(?P.*)(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