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

feat(executor): Log verb kind statusCode for executor Kubernetes API requests #4989

Merged
merged 6 commits into from Feb 5, 2021

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Feb 2, 2021

This PR adds a line of logging to the executor whenever it makes a K8S API request. E.g.

Watch pods 200

This reveals all API requests, as well as the HTTP status code returned.

@alexec alexec changed the title feat(executor): Log summary of Kubernetes API requests feat(executor): Log verb kind statusCode for executor Kubernetes API requests Feb 2, 2021
"strings"
)

func ParseRequest(r *http.Request) (verb string, kind string) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

lift-and-shift

@@ -359,7 +359,7 @@ func ResumeWorkflow(ctx context.Context, wfIf v1alpha1.WorkflowInterface, hydrat

err = hydrator.Hydrate(wf)
if err != nil {
return false, err
return true, err
Copy link
Contributor Author

Choose a reason for hiding this comment

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

bug

@alexec alexec marked this pull request as ready for review February 2, 2021 18:11
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
@alexec alexec merged commit c4e8d1c into argoproj:master Feb 5, 2021
@alexec alexec deleted the log-k8s branch February 5, 2021 01:05
@simster7 simster7 mentioned this pull request Feb 8, 2021
38 tasks
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.

None yet

2 participants