Skip to content

chore: Enhance PopulateResourceFromAnnotation error message #582

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

Conversation

michaelhtm
Copy link
Member

Description of changes:
The error message returned from PopulateResourceFromAnnotation was
not descriptive enough, as it did not include the name of the required field
that was missing.

This change is including the field name in the error message.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow bot requested review from a-hilaly and jlbutler April 24, 2025 18:11
Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

👍

@ack-prow ack-prow bot added the approved label Apr 24, 2025
@michaelhtm
Copy link
Member Author

.retest

@michaelhtm
Copy link
Member Author

/retest

@rushmash91
Copy link
Member

this is so much better @michaelhtm thanks!
/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Apr 24, 2025
The error message returned from PopulateResourceFromAnnotation was not
descriptive enough, as it did not include the name of the required field
that was missing.

This change is including the field name in the error message.
@michaelhtm michaelhtm force-pushed the chore/enhanceerrormessagepopulateresourcefromannotation branch from fdf5294 to 488a555 Compare April 29, 2025 22:21
@ack-prow ack-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Apr 29, 2025
@michaelhtm
Copy link
Member Author

/test dynamodb-controller-test

@rushmash91
Copy link
Member

/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Apr 30, 2025
Copy link

ack-prow bot commented Apr 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a-hilaly, michaelhtm, rushmash91

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow bot merged commit f0e8616 into aws-controllers-k8s:main Apr 30, 2025
17 of 19 checks passed
Copy link

ack-prow bot commented May 1, 2025

@michaelhtm: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
verify-attribution 488a555 link false /test verify-attribution
s3-olm-test 488a555 link false /test s3-olm-test
apigatewayv2-controller-test 488a555 link unknown /test apigatewayv2-controller-test
efs-controller-test 488a555 link unknown /test efs-controller-test
eks-controller-test 488a555 link unknown /test eks-controller-test
ec2-controller-test 488a555 link unknown /test ec2-controller-test

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants