Merge branch 'master' of github.com-derailed:derailed/k9s

mine
derailed 2019-07-12 08:21:47 -06:00
commit fe11d334c7
3 changed files with 7 additions and 3 deletions

View File

@ -16,7 +16,7 @@ import (
func runK(clear bool, app *appView, args ...string) bool { func runK(clear bool, app *appView, args ...string) bool {
bin, err := exec.LookPath("kubectl") bin, err := exec.LookPath("kubectl")
if err != nil { 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 return false
} }

View File

@ -9,8 +9,8 @@ import (
) )
var ( var (
keyValRX = 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`) keyRX = regexp.MustCompile(`\A(\s*)([\w|\-|\.|\/|\s]+):\s*\z`)
) )
const ( const (

View File

@ -39,6 +39,10 @@ func TestYaml(t *testing.T) {
"fred.blee: <none>", "fred.blee: <none>",
"[steelblue::b]fred.blee[white::-]: [papayawhip::] <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") s, _ := config.NewStyles("skins/stock.yml")