-
Notifications
You must be signed in to change notification settings - Fork 72
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
Feature: CNF Installation (4) Group several manifest into one file #2144
Conversation
src/tasks/cleanup.cr
Outdated
# Remove common_manifest.yaml file | ||
common_manifest_path = "cnfs/common_manifest.yaml" | ||
if File.exists?(common_manifest_path) | ||
File.delete(common_manifest_path) | ||
stdout_success "#{common_manifest_path} file deleted successfully." | ||
end |
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.
This stdout_success
feels unnecessary, should just be a Log.info
.
src/tasks/utils/cnf_manager.cr
Outdated
|
||
#Generating manifest from installed CNF | ||
generated_manifest = Helm.generate_manifest(release_name, deployment_namespace) | ||
manifest_path = "cnfs/common_manifest.yaml" | ||
if File.exists?(manifest_path) | ||
File.open(manifest_path, "a") do |file| | ||
file.puts generated_manifest | ||
end | ||
else | ||
File.open(manifest_path, "w") do |file| | ||
file.puts generated_manifest | ||
end | ||
end |
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.
This should have some exception handling/verification of the returned value (i.e. string not empty).
The Helm module change that this ticket depends on should be mentioned/referenced somewhere in the pull request, possibly even in the commit. Additionally changing the title to conform to the other pull requests from the epic would be appreciated for clarity. |
2f62d28
to
50ce8b2
Compare
- group manifests from several CNFs into one common_manifests.yaml file - add functionality in cleanup.cr to remove this file - depends on PR in helm library: cnf-testsuite/helm#4
Recreated in PR: #2150 |
Description
Depending on
Pull request from helm library: cnf-testsuite/helm#4
Issues:
Refs: #2125
How has this been tested: