We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa5bb81 commit 6bbe5e0Copy full SHA for 6bbe5e0
pkg/kubernetes/configuration_test.go
@@ -5,6 +5,7 @@ import (
5
"k8s.io/client-go/rest"
6
"os"
7
"path"
8
+ "runtime"
9
"strings"
10
"testing"
11
)
@@ -67,6 +68,9 @@ func TestKubernetes_IsInCluster(t *testing.T) {
67
68
69
func TestKubernetes_ResolveKubernetesConfigurations_Explicit(t *testing.T) {
70
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
+ }
74
tempDir := t.TempDir()
75
k := Kubernetes{Kubeconfig: path.Join(tempDir, "config")}
76
err := resolveKubernetesConfigurations(&k)
0 commit comments