Skip to content

Commit cb3ac97

Browse files
authored
Better OLM manifest generation (#65)
* added build-manifests.py * wip: generate manfiests from Helm * fix: add target namespace to operator group * add owned crds to the csv * wip: add cluster role and deployment to csv * wip: patch op image with quay.io version * wip: encapsulate yaml writing into func * wip: add cli arg for target OpenShift versions * wip: add keywords and op repository url * wip: make it work with the spark op * wip: make it work with the hdfs op * wip: ignore empty Helm objects * wip: refactor for secret op * wip: revert support for secret and listener ops * wip: add csv display names and description * wip: fix typo and remove special chars from description * wip: patch product cluster role with scc rule * wip: move yaml templates to resources folder * wip: fix indent in csv.yaml * wip: fix build-bundles.sh for spark-k8s * wip: patch version in exported manifests * wip: allow OLM manifests from 0.0.0-dev charts
1 parent 273ec98 commit cb3ac97

File tree

5 files changed

+665
-1
lines changed

5 files changed

+665
-1
lines changed

olm/build-bundles.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ catalog() {
166166
echo "kind: OperatorGroup"
167167
echo "metadata:"
168168
echo " name: stackable-operator-group"
169+
echo "spec:"
170+
echo " targetNamespaces:"
171+
echo " - stackable-operators"
169172
} >operator-group.yaml
170173

171174
echo "Catalog, operator group and subscription built (but not deployed) successfully!"
@@ -192,7 +195,11 @@ main() {
192195
fi
193196

194197
# this is the same folder that is also used by build-manifests.sh
195-
cd "${OPENSHIFT_ROOT}/operators/stackable-${OPERATOR}-operator/${VERSION}"
198+
if [ "$OPERATOR" == "spark-k8s" ]; then
199+
cd "${OPENSHIFT_ROOT}/operators/stackable-spark-operator/${VERSION}"
200+
else
201+
cd "${OPENSHIFT_ROOT}/operators/stackable-${OPERATOR}-operator/${VERSION}"
202+
fi
196203

197204
# clean up any residual files from previous actions
198205
bundle-clean

0 commit comments

Comments
 (0)