-
Notifications
You must be signed in to change notification settings - Fork 232
USHIFT-2170: support upgrading 2 Y versions at a time #2952
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
Changes from 7 commits
d804485
ba2039f
d0f642d
0abd401
90561f1
2cea264
f16d284
364432c
9d43c9d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,15 +52,11 @@ get_current_release_from_sub_repos() { | |
| local -r minor="${1}" | ||
| local -r rhsm_repo="rhocp-4.${minor}-for-rhel-9-${UNAME_M}-rpms" | ||
|
|
||
| # getting version of RPM within a rhocp repo depends on the repo being enabled, | ||
| # which is done in configure_vm.sh | ||
| if dnf_repo_is_enabled "${rhsm_repo}"; then | ||
| local newest | ||
| newest=$(sudo dnf repoquery microshift --quiet --queryformat '%{version}-%{release}' --repo "${rhsm_repo}" | sort --version-sort | tail -n1) | ||
| if [ -n "${newest}" ]; then | ||
| echo "${newest}" | ||
| return | ||
| fi | ||
| local newest | ||
| newest=$(sudo dnf repoquery microshift --quiet --queryformat '%{version}-%{release}' --repo "${rhsm_repo}" | sort --version-sort | tail -n1) | ||
| if [ -n "${newest}" ]; then | ||
| echo "${newest}" | ||
| return | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pmtk I think this is the change you've mentioned that we need, please take a look when you have a few minutes.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think so.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If that function were to return "version,repo", then
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought about that. I liked the simplicity of that repo being explicitly known to exist in the caller, but maybe the symmetry of always having some repo reference returned is better? I'll defer to you, let me know if I should change it. |
||
| fi | ||
| echo "" | ||
| } | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| {{- if env.Getenv "RHOCP_MINOR_Y2" "" -}} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some comment said RHOCP for y-2 will always be available - do we need
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point, I can remove that. |
||
| id = "rhocp-y2" | ||
| name = "Red Hat OpenShift Container Platform 4.{{ .Env.RHOCP_MINOR_Y2 }} for RHEL 9" | ||
| type = "yum-baseurl" | ||
| url = "https://cdn.redhat.com/content/dist/layered/rhel9/{{ .Env.UNAME_M }}/rhocp/4.{{ .Env.RHOCP_MINOR_Y2 }}/os" | ||
| check_gpg = true | ||
| check_ssl = true | ||
| system = false | ||
| rhsm = true | ||
| {{- end -}} | ||
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.