Skip to content
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

Surface failure information from pod evaluator #3105

Merged
merged 1 commit into from
May 9, 2022

Conversation

mengqiy
Copy link
Contributor

@mengqiy mengqiy commented May 6, 2022

Surface more failure information to users when:

  • a pod evaluator fails to evaluate a KRM function
  • a evaluator pod fails to come up and cause timeout

Added a e2e test to exercise the failure scenario in pod evaluator.


// TODO: replace this with fn.ParseResourceList when github.com/GoogleContainerTools/kpt-functions-sdk/go/fn in go.mod
// is upgraded to cdc9f0cfea190d80397dc05e2b514b2ba1c89b6c or later.
func parseResults(resourceList []byte) (fn.Results, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

cc: @yuwenma

Copy link
Contributor

@martinmaly martinmaly left a comment

Choose a reason for hiding this comment

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

Couple of nits

porch/func/internal/podevaluator.go Outdated Show resolved Hide resolved
porch/func/wrapper-server/main.go Outdated Show resolved Hide resolved
porch/func/wrapper-server/main.go Outdated Show resolved Hide resolved
porch/func/wrapper-server/main.go Outdated Show resolved Hide resolved
@mengqiy mengqiy merged commit 82fc28e into kptdev:main May 9, 2022
@mengqiy mengqiy deleted the surfaceerr branch May 9, 2022 18:28
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.

3 participants