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

Conversation

davidcassany
Copy link
Contributor

@davidcassany davidcassany commented Sep 20, 2024

I am not sure about the relevance of this script with the new channels scheme. At a time I coded these scripts to list elemental-operator images and to validate channels, but this is loosing it's meaning, now the contents of OS channels are validated by design (we create the contents of it by querying the actual registry) and the channel image itself is decoupled from the operator.

In any case this is just a trivial patch to keep it up to date and consistent.

@davidcassany davidcassany requested a review from a team as a code owner September 20, 2024 07:21
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.

Copy link
Contributor

@anmazzotti anmazzotti left a comment

Choose a reason for hiding this comment

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

LGTM

I think indeed the script is not that useful for official channels, but maybe it could be reworked to make it handy to validate an airgap setup, or any other customly built channel.

Signed-off-by: David Cassany <dcassany@suse.com>
@davidcassany davidcassany merged commit 7ba0a1e into rancher:main Sep 25, 2024
8 of 10 checks passed
@davidcassany davidcassany deleted the update_obs_helper_scripts branch September 25, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants