summaryrefslogtreecommitdiffstats
path: root/scripts/opts.sh
blob: d484efced2b061000c94a81b3904673c6be0b048 (plain)
1
2
3
4
5
6
7
8
9
function get_gluster_pod {
    oc -n glusterfs get pods -l 'glusterfs=storage-pod' | grep Running | awk '{ print $1 }' | head -n 1
}

gpod=$(get_gluster_pod)

function gluster {
    oc -n glusterfs rsh po/$gpod gluster "$@"
}