diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..cd643d4 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @robbycochran diff --git a/cmd/up.go b/cmd/up.go index 7c9d83d..4e9813b 100644 --- a/cmd/up.go +++ b/cmd/up.go @@ -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") }