kt-connect icon indicating copy to clipboard operation
kt-connect copied to clipboard

ktctl.exe config save-profile test一直报错

Open carllhw opened this issue 1 year ago • 0 comments

Describe the bug

➜  ~ ktctl.exe config save-profile test
10:21PM ERR Exit: invalid profile name, must only contains letter, number, underline, hyphen or dot

看代码发现save.go,因为会拼接kt的配置目录为前缀,导致正则表达式一直不通过

Log please add -d to debug log

Environment (please complete the following information):

  • OS: Windows 11
  • Kubernetes [e.g. 1.10.1]
  • KT Version: 0.3.6

Additional context Add any other context about the problem here.

carllhw avatar Jul 31 '22 14:07 carllhw