-
Notifications
You must be signed in to change notification settings - Fork 2
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
docs: troubleshooting cluster #16
base: cluster
Are you sure you want to change the base?
docs: troubleshooting cluster #16
Conversation
LGTM!~ |
commit 5afbe46 validated for windows |
@CliffordCheefoon Approved. just a few little things to tidy up =] |
if errRmGit != nil { | ||
log.Fatalf("Error removing git folder at /tmp/"+folderName+". %s", errRmGit) | ||
} | ||
// commandRmGit := exec.Command("rm", "-rf", ".git") |
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.
remove commented code
@@ -495,6 +496,8 @@ func installSealedSecrets() { | |||
secret, err := cmd.Output() | |||
check(err) | |||
|
|||
os.MkdirAll(secretsDir, 0755) //if .secrets folder is missing, create |
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.
keep comments above the code they relate to, not inline.
also since there is no if statement here. perhaps to show the true intention of the code its better to say ensure secrets folder is present. or something along those lines.
// log.Fatalf("Error removing git folder at /tmp/"+folderName+". %s", errRmGit) | ||
// } | ||
|
||
removeGitError := os.RemoveAll(clusterRootPath + FPS + "tmp" + FPS + folderName + FPS + ".git") |
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.
There is a native way in go to deal with os specific file path creation. filepath.Join()
I have refactored all of the FPS variable usage out of the code in a PR I wrote a while ago but wasn't merged yet. still a little WIP. #18
No description provided.