hotfix: typo (#293)

This commit is contained in:
naison
2024-07-08 21:42:51 +08:00
committed by GitHub
parent 295a7a709e
commit 62b0de99f9
3 changed files with 3 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ func startDaemonProcess(cli *ssh.Client) {
func getDaemonVersionFromOutput(output []byte) (version string) {
type Data struct {
DaemonVersion string `json:"DaemonVersion"`
DaemonVersion string `json:"Daemon"`
}
// remove first line
buf := bufio.NewReader(bytes.NewReader(output))

View File

@@ -97,7 +97,7 @@ func ConvertToKubeConfigBytes(factory cmdutil.Factory) ([]byte, string, error) {
}
func ConvertToTempKubeconfigFile(kubeconfigBytes []byte) (string, error) {
temp, err := os.CreateTemp("", "*.tmp.kubeconfig")
temp, err := os.CreateTemp("", "*.kubeconfig")
if err != nil {
return "", err
}

View File

@@ -628,7 +628,7 @@ func SshJump(ctx context.Context, conf *SshConfig, flags *pflag.FlagSet, print b
}
var temp *os.File
if temp, err = os.CreateTemp("", "kubevpn"); err != nil {
if temp, err = os.CreateTemp("", "*.kubeconfig"); err != nil {
return
}
if err = temp.Close(); err != nil {