Skip to content

Commit bc3af8d

Browse files
authored
Merge pull request #2757 from FabianKramm/main
feat: add orbstack to local K8s
2 parents 419d97e + 2c24dbc commit bc3af8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/devspace/kubectl/util.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ package kubectl
33
import (
44
"context"
55
"fmt"
6-
"k8s.io/apimachinery/pkg/runtime"
76
"net"
87
"net/http"
98
"strings"
109

10+
"k8s.io/apimachinery/pkg/runtime"
11+
1112
"github.com/loft-sh/devspace/pkg/devspace/kubectl/portforward"
1213
"github.com/loft-sh/devspace/pkg/util/log"
1314
"github.com/pkg/errors"
@@ -23,6 +24,7 @@ const (
2324
minikubeProvider = "minikube.sigs.k8s.io"
2425
dockerDesktopContext = "docker-desktop"
2526
dockerForDesktopContext = "docker-for-desktop"
27+
orbstackContext = "orbstack"
2628
)
2729

2830
// WaitStatus are the status to wait
@@ -216,6 +218,7 @@ func IsLocalKubernetes(kubeClient Client) bool {
216218

217219
context := kubeClient.CurrentContext()
218220
if strings.HasPrefix(context, "kind-") ||
221+
context == orbstackContext ||
219222
context == dockerDesktopContext ||
220223
context == dockerForDesktopContext {
221224
return true

0 commit comments

Comments
 (0)