Skip to content

Commit 6bbe5e0

Browse files
committed
test: disable config test on windows
1 parent fa5bb81 commit 6bbe5e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/kubernetes/configuration_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"k8s.io/client-go/rest"
66
"os"
77
"path"
8+
"runtime"
89
"strings"
910
"testing"
1011
)
@@ -67,6 +68,9 @@ func TestKubernetes_IsInCluster(t *testing.T) {
6768

6869
func TestKubernetes_ResolveKubernetesConfigurations_Explicit(t *testing.T) {
6970
t.Run("with missing file", func(t *testing.T) {
71+
if runtime.GOOS != "linux" && runtime.GOOS != "darwin" {
72+
t.Skip("Skipping test on non-linux platforms")
73+
}
7074
tempDir := t.TempDir()
7175
k := Kubernetes{Kubeconfig: path.Join(tempDir, "config")}
7276
err := resolveKubernetesConfigurations(&k)

0 commit comments

Comments
 (0)