File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ function usage() {
28
28
echo " --skip-dnf-update Do NOT run dnf update"
29
29
echo " --pull-images Force pulling of container images before starting MicroShift"
30
30
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."
31
32
32
33
[ -n " $1 " ] && echo -e " \nERROR: $1 "
33
34
exit 1
@@ -64,6 +65,10 @@ while [ $# -gt 1 ]; do
64
65
OPTIONAL_RPMS=true
65
66
shift
66
67
;;
68
+ --skip-optional-rpms)
69
+ OPTIONAL_SKIPPED_RPMS=$2
70
+ shift 2
71
+ ;;
67
72
* ) usage ;;
68
73
esac
69
74
done
@@ -258,7 +263,13 @@ if ${BUILD_AND_RUN}; then
258
263
# Skip gateway api rpms because:
259
264
# - Feature is still dev preview and no tests/docs are guaranteed.
260
265
# - 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
+
262
273
# shellcheck disable=SC2046,SC2086
263
274
" ${DNF_RETRY} " " localinstall" " $( find ~ /microshift/_output/rpmbuild/RPMS -type f -name " *.rpm" $( printf ' -not -name *%s* ' ${SKIPPED_RPMS} ) ) "
264
275
else
You can’t perform that action at this time.
0 commit comments