Skip to content

Commit

Permalink
Added more patch usage examples
Browse files Browse the repository at this point in the history
  • Loading branch information
shyiko committed Feb 3, 2018
1 parent e937f32 commit 70cde0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kubesec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
/*
Expand Down

0 comments on commit 70cde0c

Please sign in to comment.