You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"", fmt.Errorf("error when waiting the pod to be ready: %w", e)
588
+
return"", fmt.Errorf("error occured when waiting the pod to be ready. If the error is caused by timeout, you may want to examine the pods in namespace %q. Error: %w", pm.namespace, e)
returnnil, status.Errorf(codes.Internal, "Failed to execute function %q: %s (%s)", req.Image, err, stderr.String())
102
+
outbytes:=stdout.Bytes()
103
+
stderrStr:=stderr.String()
104
+
iferr!=nil {
105
+
iferrors.As(err, &exitErr) {
106
+
// If the exit code is non-zero, we will try to embed the structured results and content from stderr into the error message.
107
+
rl, pe:=fn.ParseResourceList(outbytes)
108
+
ifpe!=nil {
109
+
// If we can't parse the output resource list, we only surface the content in stderr.
110
+
returnnil, status.Errorf(codes.Internal, "failed to evaluate function %q with stderr %v", req.Image, stderrStr)
111
+
}
112
+
returnnil, status.Errorf(codes.Internal, "failed to evaluate function %q with structured results: %v and stderr: %v", req.Image, rl.Results.Error(), stderrStr)
113
+
} else {
114
+
returnnil, status.Errorf(codes.Internal, "Failed to execute function %q: %s (%s)", req.Image, err, stderrStr)
t.Skipf("Skipping due to not having pod evalutor in local mode")
1041
1041
}
1042
1042
1043
+
const (
1044
+
generateFolderImage="gcr.io/kpt-fn/generate-folders:v0.1.1"// This function is a TS based function.
1045
+
setAnnotationsImage="gcr.io/kpt-fn/set-annotations:v0.1.3"// set-annotations:v0.1.3 is an older version that porch maps it neither to built-in nor exec.
0 commit comments