Skip to content

Nim integration #159

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Nim integration #159

wants to merge 9 commits into from

Conversation

mrajagopal
Copy link
Collaborator

@mrajagopal mrajagopal commented Jun 30, 2025

Proposed changes

Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to
that issue here in this description (not in the title of the PR).

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING guide
  • I have proven my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have ensured the README is up to date
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch on my own fork

@mrajagopal mrajagopal self-assigned this Jul 7, 2025
@mrajagopal mrajagopal marked this pull request as ready for review July 7, 2025 06:55
@mrajagopal mrajagopal linked an issue Jul 7, 2025 that may be closed by this pull request
@@ -106,6 +119,9 @@ func Execute() {
os.Exit(1)
}

rootCmd.Flags().BoolVarP(&excludeDBData, "exclude-db-data", "d", false, "exclude DB data collection")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe renaming these new flags exclude-db-data and exclude-time-series-data to something that contains the string nim would help the user understand these options apply only to that product.

@@ -266,3 +269,68 @@ func (c *DataCollector) AllNamespacesExist() bool {

return allExist
}

// CopyFileFromPod copies a file from a pod's container to the local filesystem.
func (c *DataCollector) CopyFileFromPod(namespace, pod, container, srcPath, destPath string, ctx context.Context) error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cant' you just leverage on the PodExecutor function for this? It seems you are duplicating quite a few code.

* Pass DataCollector struct as a reference from main
* Improve logic around job result/status
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.

Integrate the NIM product
2 participants