-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[olm-cmd] Add "version" flag to olm commands #3279
[olm-cmd] Add "version" flag to olm commands #3279
Conversation
4c46e7f
to
ddf2941
Compare
ddf2941
to
68cd278
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.
Only one major issue I see.
/ping @joelanford
68cd278
to
1d35a1a
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.
Just some minor doc nits.
@@ -19,6 +19,7 @@ operator-sdk olm status [flags] | |||
-h, --help help for status | |||
--olm-namespace string namespace where OLM is installed (default "olm") |
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.
Follow-up: add --olm-namespace
to uninstall
This PR adds "--version" flag to olm commands, thereby enabling users to specify the version of olm to uninstall or look for while fetching the status of its resources.
1d35a1a
to
ec7a2cb
Compare
|
||
# Uninstall should fail with OLM not installed | ||
commandoutput=$(operator-sdk olm uninstall 2>&1 || true) | ||
echo $commandoutput | grep -F "Failed to uninstall OLM: no existing installation found" | ||
echo $commandoutput | grep -F "Failed to uninstall OLM" |
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.
Since we are logging the reason of failure in error too, checking just whether installation/fetching status failed or not (for CI to pass).
ec7a2cb
to
19f665c
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.
/lgtm
19f665c
to
12c8bb4
Compare
New changes are detected. LGTM label has been removed. |
12c8bb4
to
2f7b661
Compare
Description of the change:
This PR adds "--version" flag to olm sub-commands, thereby enabling
users to specify the version of olm to uninstall or look up for
while fetching the status of its resources.
Motivation for the change:
Allow users to override the version of OLM inferred from packageservers's CSV
Closes : #3095