-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
update to remove github.com/pkg/errors #103114
update to remove github.com/pkg/errors #103114
Conversation
Hi @learner0810. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
58f75f0
to
8aa4f83
Compare
/area code-organization |
cleanUpErrs = append(cleanUpErrs, errors.Wrapf(err, | ||
"Persistent Volume %v not deleted by dynamic provisioner", pv.Name)) | ||
cleanUpErrs = append(cleanUpErrs, fmt.Errorf( | ||
"persistent Volume %v :%w not deleted by dynamic provisioner", pv.Name,err)) |
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.
"persistent Volume %v :%w not deleted by dynamic provisioner", pv.Name,err)) | |
"persistent Volume %v : not deleted by dynamic provisioner: %w", pv.Name, err)) |
@@ -347,7 +346,7 @@ func loadSnapshotClass(filename string) (*unstructured.Unstructured, error) { | |||
snapshotClass := &unstructured.Unstructured{} | |||
|
|||
if err := runtime.DecodeInto(scheme.Codecs.UniversalDecoder(), data, snapshotClass); err != nil { | |||
return nil, errors.Wrap(err, filename) | |||
return nil, fmt.Errorf("%s:%w",filename,err) |
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.
return nil, fmt.Errorf("%s:%w",filename,err) | |
return nil, fmt.Errorf("%s: %w",filename, err) |
@@ -201,7 +200,7 @@ func loadDriverDefinition(filename string) (*driverDefinition, error) { | |||
// TODO: strict checking of the file content once https://github.com/kubernetes/kubernetes/pull/71589 | |||
// or something similar is merged. | |||
if err := runtime.DecodeInto(scheme.Codecs.UniversalDecoder(), data, driver); err != nil { | |||
return nil, errors.Wrap(err, filename) | |||
return nil, fmt.Errorf("%s:%w",filename,err) |
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.
return nil, fmt.Errorf("%s:%w",filename,err) | |
return nil, fmt.Errorf("%s: %w",filename, err) |
Please execute |
8aa4f83
to
d2d4816
Compare
@wzshiming It's done thx |
/retest |
} | ||
} | ||
|
||
err := e2epv.DeletePersistentVolumeClaim(f.ClientSet, r.Pvc.Name, f.Namespace.Name) | ||
if err != nil { | ||
cleanUpErrs = append(cleanUpErrs, errors.Wrapf(err, "Failed to delete PVC %v", r.Pvc.Name)) | ||
cleanUpErrs = append(cleanUpErrs, fmt.Errorf("failed to find PVC %v: %w", r.Pvc.Name, err)) |
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.
cleanUpErrs = append(cleanUpErrs, fmt.Errorf("failed to find PVC %v: %w", r.Pvc.Name, err)) | |
cleanUpErrs = append(cleanUpErrs, fmt.Errorf("failed to delete PVC %v: %w", r.Pvc.Name, err)) |
cleanUpErrs = append(cleanUpErrs, fmt.Errorf( | ||
"persistent Volume %v: %w not deleted by dynamic provisioner", pv.Name, err)) |
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.
cleanUpErrs = append(cleanUpErrs, fmt.Errorf( | |
"persistent Volume %v: %w not deleted by dynamic provisioner", pv.Name, err)) | |
cleanUpErrs = append(cleanUpErrs, fmt.Errorf( | |
"persistent Volume %v not deleted by dynamic provisioner: %w", pv.Name, err)) |
test/e2e/storage/utils/create.go
Outdated
@@ -173,13 +172,13 @@ func CreateItems(f *framework.Framework, ns *v1.Namespace, items ...interface{}) | |||
if err == nil { | |||
done = true | |||
break | |||
} else if errors.Cause(err) != errorItemNotSupported { | |||
} else if errors.Unwrap(err) != errorItemNotSupported { |
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.
} else if errors.Unwrap(err) != errorItemNotSupported { | |
} else if !errors.Is(err, errorItemNotSupported) { |
d2d4816
to
7cf30d5
Compare
@wzshiming sorry, I miss that ,done |
/retest |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane, learner0810 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Which issue(s) this PR fixes:
xref #103043
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: