Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

barmull
Copy link
Collaborator

@barmull barmull commented Sep 6, 2024

Description

  • group manifests from several CNFs into one common_manifests.yaml file
  • add functionality in cleanup.cr to remove this file

Depending on

Pull request from helm library: cnf-testsuite/helm#4

Issues:

Refs: #2125

How has this been tested:

  • Test environment
    • Shared Packet K8s cluster
    • New Packet K8s cluster
    • Kind cluster

Comment on lines 43 to 48
# 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
Copy link
Collaborator

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.

Comment on lines 885 to 901

#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
Copy link
Collaborator

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).

@svteb
Copy link
Collaborator

svteb commented Sep 9, 2024

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.

@barmull barmull changed the title Feature: Group several manifest into one file Feature: CNF Installation (4) Group several manifest into one file Sep 9, 2024
@barmull barmull force-pushed the manifest branch 6 times, most recently from 2f62d28 to 50ce8b2 Compare September 10, 2024 14:35
- 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
@barmull
Copy link
Collaborator Author

barmull commented Sep 17, 2024

Recreated in PR: #2150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants