-
Notifications
You must be signed in to change notification settings - Fork 157
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
When CreatePod fails, dump pod options #2467
Conversation
fb38cbf
to
083430a
Compare
Can we please add unit test for those newly added utilities. |
@@ -488,3 +489,59 @@ func GetPodReadyWaitTimeout() time.Duration { | |||
|
|||
return DefaultPodReadyWaitTimeout | |||
} | |||
|
|||
// getRedactedEnvVariables returns array of variables with removed values |
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.
maybe just add to the comment explaining that this is done because the env vars can contain sensitive info
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.
Added
Done |
} | ||
return result | ||
} | ||
|
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.
We should also redact or hide the command
passed into the pod
Change Overview
We have a scenario when invoker can try to create pod with incorrect specification. It would be useful to log what exactly was passed and what pod configuration was built from passed options.
Pull request type
Please check the type of change your PR introduces:
Issues
Test Plan