#!/bin/bash

case $1 in 
 "stop")
    oc -n openshift-infra scale --replicas 0 rc/hawkular-metrics
    oc -n openshift-infra scale --replicas 0 rc/heapster
    oc -n openshift-infra scale --replicas 0 dc/hawkular-cassandra
    ;;
  "start")
    oc -n openshift-infra scale --replicas 0 dc/hawkular-cassandra
    sleep 1
    oc -n openshift-infra scale --replicas 0 rc/heapster
    sleep 1
    oc -n openshift-infra scale --replicas 0 rc/hawkular-metrics
    ;;
 *)
    echo "Usage: $0 stop/start"
esac
