IBM / cloud-pak-operations-cli

The IBM Cloud Pak Operations CLI provides basic functionality to manage Red Hat OpenShift clusters and IBM Cloud Pak for Data on various cloud platforms.
Apache License 2.0
15 stars 2 forks source link

Selectively replace images/containers in a Data Gate pod #110

Closed johker01 closed 2 years ago

johker01 commented 2 years ago

This pull request allows replacing specific images in the Data Gate pod for testing purposes, e.g. when wanting to run Data Gate test cases in a CI/CD pipeline. It is possible to either supply a deployment name or if not supplied, the CLI command will try to automatically derive the deployment name. This will not work, if more than one deployment is running on the same cluster. This is a synchronous call, meaning that the command will only return when the image replacement is done and all containers in the pod are running. The mechanism how to check whether the pod has been restarted can and will be improved in a future pull request, as it is done here.