Skip to content

Commit a5a85db

Browse files
author
Steven Hardy
authored
local-bmo.sh make BMO path configurable (openshift#1178)
Adds the option to override the default path via the BAREMETAL_OPERATOR_PATH variable. This is useful when you want to modify the checkout consumed via BAREMETAL_OPERATOR_LOCAL_IMAGE, which ends up in $HOME not the regular GOPATH location.
1 parent 99ad8c6 commit a5a85db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

metal3-dev/local-bmo.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ if ! which yq 2>&1 >/dev/null ; then
1515
exit 1
1616
fi
1717

18-
bmo_path=$GOPATH/src/github.com/metal3-io/baremetal-operator
19-
if [ ! -d $bmo_path ]; then
20-
echo "Did not find $bmo_path" 1>&2
18+
BMO_PATH=${BAREMETAL_OPERATOR_PATH:-$GOPATH/src/github.com/metal3-io/baremetal-operator}
19+
if [ ! -d $BMO_PATH ]; then
20+
echo "Did not find $BMO_PATH" 1>&2
2121
exit 1
2222
fi
2323

@@ -95,7 +95,7 @@ get_creds ironic
9595
get_creds ironic-inspector
9696

9797
# Run the operator
98-
cd $bmo_path
98+
cd $BMO_PATH
9999

100100
# Use our local verison of the CRD, in case it is newer than the one
101101
# in the cluster now.

0 commit comments

Comments
 (0)