Skip to content

Commit

Permalink
chore(tools/releases/helm.sh): don't release Gateway-related CRDs (ku…
Browse files Browse the repository at this point in the history
…mahq#3571)

Signed-off-by: Mike Beaumont <[email protected]>
  • Loading branch information
michaelbeaumont committed Dec 23, 2021
1 parent c310a61 commit a266f83
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tools/releases/helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,24 @@ GH_PAGES_BRANCH="gh-pages"
function package {
# First package all the charts
for dir in "${CHARTS_DIR}"/*; do
if [ ! -d "$dir" ]; then
if [ ! -d "${dir}" ]; then
continue
fi

# Fail if there are uncommitted changes
git diff --exit-code HEAD -- "${dir}"

# TODO remove this when Gateway is no longer experimental
if [[ -n "${BUILD_WITH_EXPERIMENTAL_GATEWAY}" && "${BUILD_WITH_EXPERIMENTAL_GATEWAY}" != "N" && $(basename "${dir}") == "kuma" ]]; then
find "${dir}/crds" -name "*gateway*.yaml" -delete
fi

cr package \
--package-path "${CHARTS_PACKAGE_PATH}" \
"$dir"
"${dir}"

# Restore files removed above
git checkout -- "${dir}"
done
}

Expand Down

0 comments on commit a266f83

Please sign in to comment.