mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-09-08 03:48:57 +00:00
Extend CI workflow with gofmt
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
@@ -88,4 +88,3 @@ func Test_kubectxFilePath_error(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -51,7 +51,7 @@ func (op ListOp) Run(stdout, stderr io.Writer) error {
|
||||
|
||||
func queryNamespaces(kc *kubeconfig.Kubeconfig) ([]string, error) {
|
||||
if os.Getenv("_MOCK_NAMESPACES") != "" {
|
||||
return []string{"ns1","ns2"}, nil
|
||||
return []string{"ns1", "ns2"}, nil
|
||||
}
|
||||
|
||||
b, err := kc.Bytes()
|
||||
|
@@ -74,7 +74,6 @@ func switchNamespace(kc *kubeconfig.Kubeconfig, ns string) (string, error) {
|
||||
return ns, nil
|
||||
}
|
||||
|
||||
|
||||
func namespaceExists(kc *kubeconfig.Kubeconfig, ns string) (bool, error) {
|
||||
nses, err := queryNamespaces(kc)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user