From acd54ba601e34dafac063f94054bb80348e73dcd Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 6 Oct 2019 04:43:13 +0200 Subject: Script to fullhy clean-up outdated rc --- scripts/opts.sh | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 scripts/opts.sh (limited to 'scripts/opts.sh') diff --git a/scripts/opts.sh b/scripts/opts.sh deleted file mode 100644 index 2f76d8e..0000000 --- a/scripts/opts.sh +++ /dev/null @@ -1,21 +0,0 @@ -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 "$@" -} - - -function node { - ip=$1 - shift - - ssh -xq root@192.168.26.$ip "$@" -} - -function heketi { - node 1 heketi-cli -s http://heketi-storage.glusterfs.svc.cluster.local:8080 --user admin --secret "$(oc get secret heketi-storage-admin-secret -n glusterfs -o jsonpath='{.data.key}' | base64 -d)" "$@" -} -- cgit v1.2.3