Skip to content

Commit 4de03b9

Browse files
committed
use manifests-template rather than previous release as bundle template
1 parent 82fd820 commit 4de03b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/actions/gen-install-scripts/entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ set -xeou pipefail
1818

1919
# copy the initial bundle dir state from teh latest released bundle
2020
latest_release_dir=$(find releases -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort -Vr | head -n 1)
21-
cp -rf "releases/${latest_release_dir}/bundle" .
21+
mkdir -p bundle/manifests
22+
cp config/manifests-template/bases/mongodb-atlas-kubernetes.clusterserviceversion.yaml bundle/manifests
2223

2324
target_dir="deploy"
2425
clusterwide_dir="${target_dir}/clusterwide"
@@ -68,7 +69,7 @@ cp config/crd/bases/* "${crds_dir}"
6869
# CSV bundle
6970
operator-sdk generate kustomize manifests --input-dir=config/manifests-template --interactive=false -q --apis-dir=api
7071
# get the current version so we could put it into the "replaces:"
71-
current_version="$(yq e '.metadata.name' bundle/manifests/mongodb-atlas-kubernetes.clusterserviceversion.yaml)"
72+
current_version="$(jq -r .current version.json)"
7273

7374
# We pass the version only for non-dev deployments (it's ok to have "0.0.0" for dev)
7475
channel="stable"

0 commit comments

Comments
 (0)