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
Fixes #26461 - Added environment variable for beta repos #251
Conversation
Issues: #26461 |
@kgaikwad any insight on if we can add some kind of auto-detection here to avoid moving this piece of code back and forth with every release? Can we get the Sat release status from some external source e.g. https://access.redhat.com/articles/1365633 or presence of the non-beta repos? This PR looks good to go if we decide to go this way. Is there any particular date when we want to merge and release it? How merging affect 6.5 testing before GA? |
@mbacovsky, I have confirmed with @ntkathole that we can merge this changes and publish new version. |
ec872b3
to
057fc2b
Compare
@mbacovsky, @ntkathole @jameerpathan111, |
@kgaikwad
|
README.md
Outdated
To use beta repositories during upgrade, set the following environment variable | ||
|
||
``` | ||
export FOREMAN_MAINTAIN_USE_BETA='ON' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kgaikwad, I wonder if it wouldn't be more convenient/consistent to use export FOREMAN_MAINTAIN_USE_BETA=1
as in other CLI tools we use 1/true/yes for positive values. What do you think? Otherwise it looks good to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mbacovsky, done 👍
057fc2b
to
40bd5d9
Compare
definitions/features/downstream.rb
Outdated
@@ -81,7 +81,7 @@ def sat_and_tools_repos(rh_version_major, sat_version) | |||
sat_maintenance_repo_id = "rhel-#{rh_version_major}-server-satellite-maintenance-6-rpms" | |||
|
|||
# Override to use Beta repositories for sat version until GA | |||
if sat_version.to_s == '6.5' | |||
if ENV['FOREMAN_MAINTAIN_USE_BETA'] && ENV['FOREMAN_MAINTAIN_USE_BETA'].casecmp('1').zero? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't if ENV['FOREMAN_MAINTAIN_USE_BETA'] == '1'
read better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, updated PR!
40bd5d9
to
07d7a83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kgaikwad thanks for this!
No description provided.