openshift-talks

What is part of the talk?

First things first! Lets clarify why the OpenShift command line interface is important -> IMHO it allows you to create customized queries that are not possible in the Web-Console and it can (and will) be used for automation. Automation is a big part of DevOps -> Learn tools at hand and how to use them. Furthermore it can be extended with plugins.

For the snippets below I was using oc cli with version 4.1. Plugins should work with older versions as well. All commands are only tested on Linux.

Features in OpenShift CLI (oc tool)

OC Patch

Similar to oc apply oc patch allows you to modify resources in OpenShift. IMHO the oc patch command is verbose about the changes that should be performed than oc apply. I don’t want to go into details about every feature of the patch command, I just want to highlight in this talk how easy it is modify resources via JSONPatch.

Extensions or plugins for oc or kubectl