ソースを参照

small datastore connect fixes (#4194)

Feroze Mohideen 2 年 前
コミット
1651af79e7

+ 5 - 5
api/server/handlers/datastore/create_proxy.go

@@ -19,11 +19,11 @@ import (
 
 // Credential has all information about connecting to a datastore
 type Credential struct {
-	Host         string
-	Port         int
-	Username     string
-	Password     string
-	DatabaseName string
+	Host         string `json:"host"`
+	Port         int    `json:"port"`
+	Username     string `json:"username"`
+	Password     string `json:"password"`
+	DatabaseName string `json:"database_name"`
 }
 
 // CreateDatastoreProxyResponse is the response body for the create datastore proxy endpoint

+ 0 - 1
api/server/router/project.go

@@ -539,7 +539,6 @@ func getProjectRoutes(
 			Scopes: []types.PermissionScope{
 				types.UserScope,
 				types.ProjectScope,
-				types.ClusterScope,
 			},
 		},
 	)