Skip to content

Commit

Permalink
Merge pull request #2757 from FabianKramm/main
Browse files Browse the repository at this point in the history
feat: add orbstack to local K8s
  • Loading branch information
FabianKramm authored Nov 14, 2023
2 parents 419d97e + 2c24dbc commit bc3af8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/devspace/kubectl/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package kubectl
import (
"context"
"fmt"
"k8s.io/apimachinery/pkg/runtime"
"net"
"net/http"
"strings"

"k8s.io/apimachinery/pkg/runtime"

"github.com/loft-sh/devspace/pkg/devspace/kubectl/portforward"
"github.com/loft-sh/devspace/pkg/util/log"
"github.com/pkg/errors"
Expand All @@ -23,6 +24,7 @@ const (
minikubeProvider = "minikube.sigs.k8s.io"
dockerDesktopContext = "docker-desktop"
dockerForDesktopContext = "docker-for-desktop"
orbstackContext = "orbstack"
)

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

context := kubeClient.CurrentContext()
if strings.HasPrefix(context, "kind-") ||
context == orbstackContext ||
context == dockerDesktopContext ||
context == dockerForDesktopContext {
return true
Expand Down

0 comments on commit bc3af8d

Please sign in to comment.