Get ImageStream Name and SHA from All DeploymentConfig within a Namespace on Openshift 4
There are times where we want to display list of DC within one Namespace, and want to see what are the images involved within it. We can do that easily by using a simple OC command like below,
oc get dc -n <namespace> --no-headers -o template \ --template='{{range.items}}{{.metadata.namespace}}{{"/"}}{{.metadata.name}}{{" - "}} {{(index .spec.template.spec.containers 0).image}}{{"\n"}}{{end}}'
No Comments