Docker image containing the latest 4.X OpenShift client which can be used in deployment pipelines such as Bitbucket Pipelines.
Use the following command in a Bitbucket Pipelines script to configure the OC client.
- oc config set-credentials deployer --token=${API_TOKEN}
- oc config set-cluster [my-cluster] --server=https://${SERVER}:${SERVER_PORT}
- oc config set-context cluster-deployer --cluster=[my-cluster] --namespace=${NAMESPACE} --user=deployer
- oc config use-context cluster-deployer