From 70cde0cf74f16a868bc310871d41e7ab5517b73a Mon Sep 17 00:00:00 2001 From: Stanley Shyiko Date: Sat, 3 Feb 2018 12:45:33 -0800 Subject: [PATCH] Added more patch usage examples --- kubesec.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kubesec.go b/kubesec.go index b106229..efa20ab 100644 --- a/kubesec.go +++ b/kubesec.go @@ -282,6 +282,9 @@ func main() { return kubesec.Patch(resource, kubesec.PatchOpt{Name: meta["name"], ClearTextDataMutation: data, KeySetMutation: *keySet, Rotate: rotate}) }), Example: " kubesec patch secret.enc.yml --data key1=secret_string --data file:key2=path/to/file\n" + + " # same as above but output is written back to secret.enc.yml (instead of stdout)\n" + + " kubesec patch -i secret.enc.yml --data key1=secret_string --data file:key2=path/to/file\n\n" + + " # read from stdin\n" + " cat secret.enc.yml | kubesec patch - --data key1=updated_secret_string", } /*