ocupgrader

A tool which wraps the OpenShift command line tools to make upgrades easier


Keywords
openshift, kubernetes
License
MIT
Install
pip install ocupgrader==0.1.0

Documentation

ocupgrader

Helper tool to automate upgrades of applications in OpenShift based on ocdeployer.

Getting Started

Details

  • Requires OpenShift command line tools (the oc command), you should log in to your cluster before using this tool:
$ oc login https://api.myopenshift --token=*************
  • ocupgrader relies on YAML file with task definitions located in current directory and called ocupgrader.yml or located on path passed using -f argument. There is an example how this file can look like.

Instalation

$ pip3 install --user ocupgrader

Usage

$ ocupgrader myproject list-tasks
$ ocupgrader myproject run maintenance-mode
$ ocupgrader myproject run status
$ ocupgrader myproject run single-component-status -p component=deploymentconfig-name
$ ocupgrader -f /path/to/ocupgrader.yml myproject run fixit

Debugging

$ OCDEPLOYER_LOG_LEVEL=INFO ocupgrader myproject run single-component-status -p component=deploymentconfig-name