diff --git a/modules/api/pkg/resource/deployment/deploy.go b/modules/api/pkg/resource/deployment/deploy.go index 03294a7d278e..90fb0a6a6ad3 100644 --- a/modules/api/pkg/resource/deployment/deploy.go +++ b/modules/api/pkg/resource/deployment/deploy.go @@ -357,6 +357,10 @@ func DeployAppFromFile(cfg *rest.Config, spec *AppDeploymentFromFileSpec) (bool, namespace = data.GetNamespace() } + if namespace == "" { + namespace = "default" + } + if resource.Namespaced { _, err = dynamicClient.Resource(groupVersionResource).Namespace(namespace).Create(context.TODO(), data, metaV1.CreateOptions{}) } else {