Skip to content

PT-2488 - full refactor of a pt-k8s-debug-collector#1054

Merged
svetasmirnova merged 47 commits into3.xfrom
PT-2448-pt-k8s-debug-collector-refactoring
Mar 30, 2026
Merged

PT-2488 - full refactor of a pt-k8s-debug-collector#1054
svetasmirnova merged 47 commits into3.xfrom
PT-2448-pt-k8s-debug-collector-refactoring

Conversation

@BON4
Copy link
Copy Markdown
Contributor

@BON4 BON4 commented Jan 9, 2026

This refactor includes replacing all of the kubectl cli calls with golang sdk for k8s. Additionaly dumper now has new structure, new logger, tar file path controll, and multithreaded approach for downloading and exporting files form multiple pods.

Resulting Archive changes

  • added cluster-scoped folder for the resources that are cluster wide.

  • in the root there is a total log file, instead of just errors.

  • The contributed code is licensed under GPL v2.0

  • Contributor Licence Agreement (CLA) is signed

  • util/update-modules has been ran
    (/lib was not changed)

  • Documentation updated

  • Test suite update

Copy link
Copy Markdown
Collaborator

@svetasmirnova svetasmirnova left a comment

Choose a reason for hiding this comment

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

I just started review and underlined few obvious things.

In addition to the comment I think adding tests for new added files, such as logs.go, paths.go, etc. makes sense.

Comment thread go.mod Outdated
Comment thread src/go/pt-k8s-debug-collector/dumper/dumper.go Outdated
Comment thread src/go/pt-k8s-debug-collector/dumper/dumper.go Outdated
Comment thread src/go/pt-k8s-debug-collector/dumper/secrets.go Outdated
@BON4 BON4 changed the title PT-2421 - full refactor of a pt-k8s-debug-collector PT-2488 - full refactor of a pt-k8s-debug-collector Jan 15, 2026
BON4 added 7 commits January 16, 2026 09:32
This refactor includes replacing all of the `kubectl` cli calls
with golang sdk for k8s. Additionaly dumper now has new structure,
new logger, tar file path controll, and multithreaded approach
for downloading and exporting files form multiple pods.
Comment thread src/go/pt-k8s-debug-collector/dumper/resources.go
Comment thread src/go/pt-k8s-debug-collector/dumper/dumper.go Outdated
Comment thread src/go/pt-k8s-debug-collector/dumper/dumper.go Outdated
Comment thread src/go/pt-k8s-debug-collector/dumper/dumper.go
Comment thread src/go/pt-k8s-debug-collector/dumper/dumper_test.go Outdated
Comment thread src/go/pt-k8s-debug-collector/dumper/logs.go
Comment thread src/go/pt-k8s-debug-collector/dumper/secrets.go Outdated
Comment thread src/go/pt-k8s-debug-collector/dumper/summary.go Outdated
Comment thread src/go/pt-k8s-debug-collector/dumper/summary.go Outdated
Comment thread src/go/pt-k8s-debug-collector/dumper/summary.go
@BON4 BON4 requested a review from svetasmirnova March 4, 2026 12:06
Comment thread src/go/pt-k8s-debug-collector/main_test.go Outdated
@it-percona it-percona temporarily deployed to PT-2448-pt-k8s-debug-collector-refactoring - percona-toolkit PR #1054 March 30, 2026 16:41 — with Render Destroyed
@svetasmirnova svetasmirnova merged commit ba966c2 into 3.x Mar 30, 2026
4 checks passed
@svetasmirnova svetasmirnova deleted the PT-2448-pt-k8s-debug-collector-refactoring branch March 30, 2026 16:47
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.

7 participants