Hide Forgot
Document URL: There is no mention in the documentation regarding oc patch command : Section Number and Name: https://access.redhat.com/documentation/en/openshift-container-platform/3.3/single/cli-reference/ Describe the issue: Please have some description regarding how this command can be used with an example and a brief description. Suggestions for improvement: Additional information:
For the oc patch command, rather than being dropped into an editor, you can provide a JSON object definition for just the setting you want to add or update. This needs to include the full object path down to the setting, which could be a literal value, or a structured object in itself. To update the serviceAccount setting using oc patch, we can use the command: $ oc patch bc/wombat --patch '{"spec":{"serviceAccount": "secret:spy"}}' "wombat" patched
Jaspreet, Thanks for the information. I also checked out the cli files in the origin repo, then made this PR: https://github.com/openshift/openshift-docs/pull/3146 Can I get an ack this is everything to fulfill this BZ? Thanks!
Yes it looks good.
Great, thanks! I'll put this onto review.
Commit pushed to master at https://github.com/openshift/openshift-docs https://github.com/openshift/openshift-docs/commit/a3862d0306ad90b6d48d7a96e0ed3c394599c3d9 Merge pull request #3146 from bfallonf/patch-1383690 Bug 1383690 added oc patch to cli reference
Link to released docs: https://docs.openshift.com/container-platform/3.3/cli_reference/basic_cli_operations.html#patch