-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: main
Are you sure you want to change the base?
Nim integration #159
Conversation
…s) data collection
cmd/nginx-supportpkg.go
Outdated
@@ -106,6 +119,9 @@ func Execute() { | |||
os.Exit(1) | |||
} | |||
|
|||
rootCmd.Flags().BoolVarP(&excludeDBData, "exclude-db-data", "d", false, "exclude DB data collection") |
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.
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 { |
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.
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
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.