Skip to content

Commit

Permalink
Change base tmp dir for bundle files to /var/tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetguptanitj committed Oct 23, 2018
1 parent aa9dbb6 commit 7ba0df5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"os"
"path"
"strconv"
"strings"
"text/template"
Expand Down Expand Up @@ -936,7 +937,7 @@ var machineBundleCmd = &cobra.Command{
if len(localPath) == 0 {
localPath = bundleFileBaseName
}
remotePath := fmt.Sprintf("/tmp/%s", bundleFileBaseName)
remotePath := path.Join(common.DashcamBundleBaseDir, bundleFileBaseName)
command := fmt.Sprintf("%s bundle --output %s", common.DashcamCommandPath, remotePath)
log.Printf("Started creating support bundle for %s. This will take a few minutes.", ip)
stdOut, stdErr, err := targetMachineClient.RunCommand(command)
Expand Down
1 change: 1 addition & 0 deletions common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const (
KubeAPIServerServiceNodePortRange = "80-32767"
KubeAPIServerAllowPrivileged = "true"
KubeControllerMgrPodEvictionTimeout = "20s"
DashcamBundleBaseDir = "/var/tmp"
DashcamCommandPath = "/opt/bin/dashcam"
SupportBundleFileNamePrefix = "cctl-bundle"
ClusterV1PrintTemplate = `Cluster Information
Expand Down

0 comments on commit 7ba0df5

Please sign in to comment.