Skip to content

Commit

Permalink
Add invocation of olm-create-bundle.sh to build-controller-release.sh (
Browse files Browse the repository at this point in the history
…#207)

Issue #, if available: 972

Description of changes:
Adds `olm-create-bundle.sh` to the OLM conditional block of `build-controller-release.sh`. Also adds stripping the 'v' from `$BUNDLE_RELEASE` to prevent any breakage if the user has that variable including a 'v.'

fixes aws-controllers-k8s/community#972

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • Loading branch information
trgeiger authored Sep 24, 2021
1 parent e4d7c2a commit 2b0ac06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/build-controller-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,6 @@ if [[ $ACK_GENERATE_OLM == "true" ]]; then
fi

$ACK_GENERATE_BIN_PATH olm $ag_olm_args
$SCRIPTS_DIR/olm-create-bundle.sh "$SERVICE" "$olm_version"

fi
1 change: 1 addition & 0 deletions scripts/olm-create-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ fi
SERVICE=$(echo "$1" | tr '[:upper:]' '[:lower:]')
VERSION=$2
BUNDLE_VERSION=${BUNDLE_VERSION:-$VERSION}
BUNDLE_VERSION=$(echo $BUNDLE_VERSION | tr -d "v")

DEFAULT_SERVICE_CONTROLLER_SOURCE_PATH="$ROOT_DIR/../$SERVICE-controller"
SERVICE_CONTROLLER_SOURCE_PATH=${SERVICE_CONTROLLER_SOURCE_PATH:-$DEFAULT_SERVICE_CONTROLLER_SOURCE_PATH}
Expand Down

0 comments on commit 2b0ac06

Please sign in to comment.