Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @robbycochran
7 changes: 5 additions & 2 deletions cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ func upRemote(harnessDir string, gwCfg *gateway.GatewayConfig, gw gateway.Gatewa
kc := k8s.New("", namespace)
clusterRunner := k8s.New("", "")

// 1. Ensure gateway
if err := gw.InferenceGet(); err != nil {
// 1. Ensure gateway and namespace
gwReachable := gw.InferenceGet() == nil
_, nsErr := kc.RunKubectl(ctx, "get", "namespace", namespace)
nsExists := nsErr == nil
if !gwReachable || !nsExists {
if gwCfg == nil {
return fmt.Errorf("no active gateway and no gateway config — use: harness deploy ocp")
}
Expand Down
Loading