Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update helper scripts to 1.6.x channel setup #850

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .obs/helper_scripts/checkimages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ channels=$(findChannels "${OPERATOR_IMAGES}")
for channel in ${channels}; do
checkChannel ${channel}
done

echo "All images successfully checked!"
exit 0
10 changes: 8 additions & 2 deletions .obs/helper_scripts/listimages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@ done
echo "${REGISTRY}/rancher/elemental-operator:${OPERATOR}"
echo "${REGISTRY}/rancher/seedimage-builder:${OPERATOR}"

echo "${REGISTRY}/rancher/elemental-channel:${OPERATOR}"
echo "${REGISTRY}/rancher/elemental-rt-channel:${OPERATOR}"
# Note sort -V is a natural numbering sort, not semver
higher_ver=$(printf '%s\n' "${OPERATOR}" "1.6.0" | sort -rV | head -n1)
if [ "${higher_ver}" == "1.6.0" ]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not really scale in the future specially when we start providing many different channels per distro stream. So this is just a little patch to keep this script consistent.

echo "${REGISTRY}/rancher/elemental-channel:${OPERATOR}"
echo "${REGISTRY}/rancher/elemental-rt-channel:${OPERATOR}"
else
echo "${REGISTRY}/rancher/elemental-channel/sl-micro:6.0-baremetal"
fi

# Assume if not registry.suse.com it should be some OBS path, hence
# charts require a different repository than containers
Expand Down
Loading