Skip to content

Commit bb4e343

Browse files
Merge pull request #4615 from eslutsky/add-skipped-optional-rpms-option
USHIFT-5456: add optional-skipped-rpms option to configure-vm
2 parents ea99c2d + ada2895 commit bb4e343

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

scripts/devenv-builder/configure-vm.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function usage() {
2828
echo " --skip-dnf-update Do NOT run dnf update"
2929
echo " --pull-images Force pulling of container images before starting MicroShift"
3030
echo " --optional-rpms Install optional RPMs (OLM, Multus) along with core MicroShift RPMs"
31+
echo " --skip-optional-rpms Comma separated list of optional RPMs to skip."
3132

3233
[ -n "$1" ] && echo -e "\nERROR: $1"
3334
exit 1
@@ -64,6 +65,10 @@ while [ $# -gt 1 ]; do
6465
OPTIONAL_RPMS=true
6566
shift
6667
;;
68+
--skip-optional-rpms)
69+
OPTIONAL_SKIPPED_RPMS=$2
70+
shift 2
71+
;;
6772
*) usage ;;
6873
esac
6974
done
@@ -258,7 +263,13 @@ if ${BUILD_AND_RUN}; then
258263
# Skip gateway api rpms because:
259264
# - Feature is still dev preview and no tests/docs are guaranteed.
260265
# - There is one issue with conformance (see USHIFT-4757) that needs to be addressed in the operator.
261-
SKIPPED_RPMS="gateway-api ai-model-serving low-latency"
266+
267+
if [ -n "${OPTIONAL_SKIPPED_RPMS}" ] ; then
268+
SKIPPED_RPMS="gateway-api ${OPTIONAL_SKIPPED_RPMS//,/ }"
269+
else
270+
SKIPPED_RPMS="gateway-api"
271+
fi
272+
262273
# shellcheck disable=SC2046,SC2086
263274
"${DNF_RETRY}" "localinstall" "$(find ~/microshift/_output/rpmbuild/RPMS -type f -name "*.rpm" $(printf ' -not -name *%s* ' ${SKIPPED_RPMS}))"
264275
else

0 commit comments

Comments
 (0)