Skip to content

Commit c0ae09b

Browse files
authored
CLOUDP-349340: use manifests-template rather than previous release as bundle template (#2789)
* use manifests-template rather than previous release as bundle template * remove unused latest_release_dir variable
1 parent a373087 commit c0ae09b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

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

1919
# copy the initial bundle dir state from teh latest released bundle
20-
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" .
20+
mkdir -p bundle/manifests
21+
cp config/manifests-template/bases/mongodb-atlas-kubernetes.clusterserviceversion.yaml bundle/manifests
2222

2323
target_dir="deploy"
2424
clusterwide_dir="${target_dir}/clusterwide"
@@ -68,7 +68,7 @@ cp config/crd/bases/* "${crds_dir}"
6868
# CSV bundle
6969
operator-sdk generate kustomize manifests --input-dir=config/manifests-template --interactive=false -q --apis-dir=api
7070
# 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)"
71+
current_version="$(jq -r .current version.json)"
7272

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

0 commit comments

Comments
 (0)