-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e851a28
commit 9a2c877
Showing
5 changed files
with
85 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
require "sam" | ||
require "file_utils" | ||
require "colorize" | ||
require "totem" | ||
require "./utils/utils.cr" | ||
require "tar" | ||
require "./utils/operator.cr" | ||
|
||
desc "Install Operator Lifecycle Manager" | ||
task "install_olm" do |_, args| | ||
install_status = Operator::OLM.install | ||
|
||
if install_status | ||
stdout_success "Operator Lifecycle Manager successfully installed" | ||
else | ||
stdout_failure "Operator Lifecycle Manager installation failed" | ||
exit 1 | ||
end | ||
end | ||
|
||
desc "Uninstall and Cleanup Operator Lifecycle Manager" | ||
task "cleanup_olm" do |_, args| | ||
uninstall_status = Operator::OLM.cleanup | ||
|
||
if uninstall_status | ||
stdout_success "Operator Lifecycle Manager was uninstalled successfully" | ||
else | ||
stdout_failure "Operator Lifecycle Manager could not be uninstalled." | ||
exit 1 | ||
end | ||
end | ||
|
||
desc "Uninstall and Cleanup Operator Lifecycle Manager" | ||
task "uninstall_olm", ["cleanup_olm"] do |_, args| | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters