Skip to content

Instantly share code, notes, and snippets.


Mikel Sanchez Herrero misanche

View GitHub Profile

My Openshift Cheatsheet

Project Quotes, Limits and Templates

  • Cluster Quota
oc create clusterquota env-qa \
    --project-label-selector environment=qa \
    --hard pods=10,services=5
oc create clusterquota user-qa \
yorammi /
Last active Sep 28, 2022
Sync 2 remote repositories script - Just define the 3 variables (use export command for that!)
# REPO_NAME=<repo>.git
# ORIGIN_URL=git@<host>:<project>/$REPO_NAME
# REPO1_URL=git@<host>:<project>/$REPO_NAME
rm -rf $REPO_NAME
git clone --bare $ORIGIN_URL
if [ "$?" != "0" ]; then
echo "ERROR: failed clone of $ORIGIN_URL"