Merge branch 'master' of github.com-derailed:derailed/k9s
commit
fe11d334c7
|
|
@ -16,7 +16,7 @@ import (
|
|||
func runK(clear bool, app *appView, args ...string) bool {
|
||||
bin, err := exec.LookPath("kubectl")
|
||||
if err != nil {
|
||||
log.Error().Msgf("Unable to find kubeclt command in path %v", err)
|
||||
log.Error().Msgf("Unable to find kubectl command in path %v", err)
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
keyValRX = regexp.MustCompile(`\A(\s*)([\w|\-|\.|\s]+):\s(.+)\z`)
|
||||
keyRX = regexp.MustCompile(`\A(\s*)([\w|\-|\.|\s]+):\s*\z`)
|
||||
keyValRX = regexp.MustCompile(`\A(\s*)([\w|\-|\.|\/|\s]+):\s(.+)\z`)
|
||||
keyRX = regexp.MustCompile(`\A(\s*)([\w|\-|\.|\/|\s]+):\s*\z`)
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -39,6 +39,10 @@ func TestYaml(t *testing.T) {
|
|||
"fred.blee: <none>",
|
||||
"[steelblue::b]fred.blee[white::-]: [papayawhip::] <none>",
|
||||
},
|
||||
{
|
||||
"certmanager.k8s.io/cluster-issuer: nameOfClusterIssuer",
|
||||
"[steelblue::b]certmanager.k8s.io/cluster-issuer[white::-]: [papayawhip::]nameOfClusterIssuer",
|
||||
},
|
||||
}
|
||||
|
||||
s, _ := config.NewStyles("skins/stock.yml")
|
||||
|
|
|
|||
Loading…
Reference in New Issue