Last active
June 25, 2019 16:05
-
-
Save rjhowe/de6c7d61d3f78454cbc444274a61d47d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set +x | |
gitdir="${HOME}/git/" | |
ocp_go_repos=(origin | |
installer | |
api | |
cluster-image-registry-operator | |
cluster-monitoring-operator | |
cluster-network-operator | |
cluster-ingress-operator | |
cluster-autoscaler-operator | |
cluster-authentication-operator | |
cluster-dns-operator | |
cluster-node-tuning-operator | |
cluster-openshift-controller-manager-operator | |
cluster-kube-apiserver-operator | |
cluster-kube-scheduler-operator | |
cluster-kube-controller-manager-operator | |
cluster-version-operator | |
cluster-logging-operator | |
cluster-openshift-apiserver-operator | |
cluster-storage-operator | |
cluster-samples-operator | |
cluster-network-operator | |
cluster-svcat-apiserver-operator | |
cluster-svcat-controller-manager-operator | |
service-ca-operator | |
console-operator | |
cloud-credential-operator | |
machine-api-operator | |
machine-config-operator | |
elasticsearch-operator | |
aws-account-operator | |
vertical-pod-autoscaler-operator | |
ocs-operator | |
certman-operator | |
template-service-broker-operator | |
tektoncd-pipeline-operator | |
local-storage-operator | |
kubefed-operator | |
oauth-proxy | |
client-go | |
image-registry | |
origin-web-console-server | |
openshift-tuned | |
node-problem-detector | |
kubernetes-metrics-server | |
must-gather | |
) | |
ocp_go_forked=(cluster-api-provider-aws | |
kubernetes-apiextensions-apiserver | |
kubernetes-apiserver | |
kubernetes | |
kube-rbac-proxy | |
cluster-api-provider-azure | |
kubernetes-autoscaler | |
coredns | |
prometheus | |
) | |
ocp_misc_repos=(openshift-docs | |
openshift-ansible | |
release | |
console | |
origin-web-console | |
) | |
_GET_REPOS() { | |
local -n repos=$1 | |
for r in ${repos[*]}; do | |
repo_url=$2/$r.git | |
if [ -d $gitdir/$r ]; then | |
pushd $gitdir/$r | |
git pull | |
popd | |
else | |
git clone $repo_url $gitdir/$r | |
fi | |
done | |
} | |
# _GET_REPOS REPO BASEURL | |
_GET_REPOS ocp_go_repos https://github.com/openshift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment