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 {
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 (
|
||||||
|
|
|
||||||
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue