-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add more debugging for certificate issues #7270
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tstromberg 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 |
/ok-to-test |
All Times minikube: [ 66.297922 63.628437 63.747088] Average minikube: 64.557816 Averages Time Per Log
|
@@ -360,9 +362,16 @@ func collectCACerts() (map[string]string, error) { | |||
|
|||
// getSubjectHash calculates Certificate Subject Hash for creating certificate symlinks | |||
func getSubjectHash(cr command.Runner, filePath string) (string, error) { | |||
lrr, err := cr.RunCmd(exec.Command("ls", "-la", filePath)) | |||
if err != nil { | |||
return "", err |
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.
Wrap the error with something helpful.
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.
I don't think there is anything extra we can add - the error already includes the command-line:
getSubjectHash: ls -la : returned exit code 1
To help catch a race condition: #6956