-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat!: added receiving a logger object #470
feat!: added receiving a logger object #470
Conversation
Warning Review failedThe pull request is closed. WalkthroughThe recent updates refactor the Minio package to accept a Changes
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- e2e/system/build_from_git_test.go (1 hunks)
- e2e/tshark/tshark_test.go (1 hunks)
- pkg/knuu/knuu_old.go (1 hunks)
- pkg/minio/minio.go (13 hunks)
Additional comments not posted (13)
e2e/tshark/tshark_test.go (2)
37-38
: LGTM! But verify the function usage in the codebase.The code changes are approved.
However, ensure that all function calls to
k8s.NewClient
andminio.New
match the new signature.
41-41
: LGTM! But verify the function usage in the codebase.The code changes are approved.
However, ensure that all function calls to
minio.New
match the new signature.Verification successful
All function calls to
minio.New
match the new signature.
pkg/knuu/knuu_old.go:83
e2e/system/build_from_git_test.go:80
e2e/tshark/tshark_test.go:41
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all function calls to `minio.New` match the new signature. # Test: Search for the function usage. Expect: Only occurrences of the new signature. rg --type go $'minio.New'Length of output: 270
Script:
#!/bin/bash # Extract lines containing `minio.New` from the identified files to verify their signatures. rg --type go --line-number "minio.New" e2e/system/build_from_git_test.go pkg/knuu/knuu_old.goLength of output: 264
e2e/system/build_from_git_test.go (2)
80-80
: LGTM! But verify the function usage in the codebase.The code changes are approved.
However, ensure that all function calls to
minio.New
match the new signature.Verification successful
Verified function usage in the codebase.
All occurrences of
minio.New
match the new signature(ctx, k8sClient, logger)
.
pkg/knuu/knuu_old.go
e2e/tshark/tshark_test.go
e2e/system/build_from_git_test.go
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all function calls to `minio.New` match the new signature. # Test: Search for the function usage. Expect: Only occurrences of the new signature. rg --type go $'minio.New'Length of output: 270
Script:
#!/bin/bash # Description: Verify the function signature of `minio.New` in the identified files. # Check the function signature in pkg/knuu/knuu_old.go echo "Checking pkg/knuu/knuu_old.go" rg --context 2 'minio.New' pkg/knuu/knuu_old.go # Check the function signature in e2e/tshark/tshark_test.go echo "Checking e2e/tshark/tshark_test.go" rg --context 2 'minio.New' e2e/tshark/tshark_test.go # Check the function signature in e2e/system/build_from_git_test.go echo "Checking e2e/system/build_from_git_test.go" rg --context 2 'minio.New' e2e/system/build_from_git_test.goLength of output: 911
73-74
: LGTM! But verify the function usage in the codebase.The code changes are approved.
However, ensure that all function calls to
k8s.NewClient
match the new signature.Verification successful
Verification successful. All occurrences of
k8s.NewClient
andk8s.NewClientCustom
include thelogger
parameter, matching the new function signature.
pkg/knuu/knuu.go
pkg/k8s/test_suite_test.go
pkg/knuu/knuu_old.go
pkg/builder/kaniko/kaniko_test.go
e2e/tshark/tshark_test.go
e2e/system/build_from_git_test.go
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all function calls to `k8s.NewClient` match the new signature. # Test: Search for the function usage. Expect: Only occurrences of the new signature. rg --type go $'k8s.NewClient'Length of output: 607
Script:
#!/bin/bash # Description: Verify all occurrences of `k8s.NewClient` and `k8s.NewClientCustom` match the new signature. # Extracting lines around the occurrences to inspect the function signature. rg --type go --context 2 'k8s.NewClient' > new_client_occurrences.txt rg --type go --context 2 'k8s.NewClientCustom' > new_client_custom_occurrences.txt # Display the files with occurrences for manual inspection. cat new_client_occurrences.txt cat new_client_custom_occurrences.txtLength of output: 2622
pkg/knuu/knuu_old.go (1)
83-83
: LGTM! But verify the function usage in the codebase.The code changes are approved.
However, ensure that all function calls to
minio.New
match the new signature.Verification successful
All instances of
minio.New
match the new signature. No issues found.
pkg/knuu/knuu_old.go
at line 83e2e/tshark/tshark_test.go
at line 41e2e/system/build_from_git_test.go
at line 80Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all function calls to `minio.New` match the new signature. # Test: Search for the function usage. Expect: Only occurrences of the new signature. rg --type go $'minio.New'Length of output: 270
Script:
#!/bin/bash # Verify that the function calls to `minio.New` match the new signature in the identified files. # Check the specific lines in each file rg --line-number 'minio.New' pkg/knuu/knuu_old.go rg --line-number 'minio.New' e2e/tshark/tshark_test.go rg --line-number 'minio.New' e2e/system/build_from_git_test.goLength of output: 341
pkg/minio/minio.go (8)
50-50
: LGTM!The code changes are approved.
100-100
: LGTM!The code changes are approved.
121-121
: LGTM!The code changes are approved.
177-177
: LGTM!The code changes are approved.
249-249
: LGTM!The code changes are approved.
Also applies to: 259-259
297-297
: LGTM!The code changes are approved.
Also applies to: 302-302, 311-311
398-398
: LGTM!The code changes are approved.
Also applies to: 439-439, 462-462
59-62
: LGTM! But verify the function usage in the codebase.The code changes are approved.
However, ensure that all function calls to
New
match the new signature.
Closes #446
Summary by CodeRabbit
Refactor
logger
parameter to various functions.New Features
Minio
struct, enhancing traceability and debugging capabilities.