File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ parse_inputs() {
33
33
shift
34
34
done
35
35
36
- # e.g. "airflow" instead of "airflow-operator "
37
- OPERATOR=$( echo " ${OPERATOR_NAME} " | cut -d- -f1 )
36
+ # e.g. "airflow" , "spark-k8s "
37
+ OPERATOR=$( basename " ${OPERATOR_NAME} " | rev | cut -d- -f2- | rev )
38
38
}
39
39
40
40
bundle-clean () {
Original file line number Diff line number Diff line change 11
11
# ./olm/build-manifests.sh -r 23.11.0 -c $HOME/repo/stackable/openshift-certified-operators -o $HOME/repo/stackable/zookeeper-operator
12
12
#
13
13
# Before running the script:
14
+ # * Ensure the certified-operators and operator repos are located on the correct branches (the branches are not supplied as arguments).
14
15
# * Update the supported OpenShift version range in the `generate_metadata()` function.
15
16
#
16
17
# The generated manifests need to be updated manually with the following steps:
@@ -111,8 +112,8 @@ parse_inputs() {
111
112
shift
112
113
done
113
114
114
- # e.g. "airflow" instead of "airflow-operator"
115
- PRODUCT=$( basename " ${OP_ROOT} " | cut -d- -f1 )
115
+ # e.g. "airflow" instead of "airflow-operator", "spark-k8s" instead of "spark-k8s-operator"
116
+ PRODUCT=$( basename " ${OP_ROOT} " | rev | cut -d- -f2- | rev )
116
117
117
118
OPERATOR=" $PRODUCT -operator"
118
119
MANIFESTS_DIR=" $OPENSHIFT_ROOT /operators/stackable-$OPERATOR /$RELEASE_VERSION /manifests"
You can’t perform that action at this time.
0 commit comments