Browse Source

update agent values schema

Alexander Belanger 5 năm trước cách đây
mục cha
commit
e2a290e914
1 tập tin đã thay đổi với 6 bổ sung3 xóa
  1. 6 3
      server/api/agent_handler.go

+ 6 - 3
server/api/agent_handler.go

@@ -91,10 +91,13 @@ func (app *App) HandleDeployAgent(w http.ResponseWriter, r *http.Request) {
 	}
 	}
 
 
 	porterAgentValues := map[string]interface{}{
 	porterAgentValues := map[string]interface{}{
+		"secret": map[string]interface{}{
+			"token": encoded,
+		},
 		"config": map[string]interface{}{
 		"config": map[string]interface{}{
-			"token":     encoded,
-			"projectID": projID,
-			"clusterID": releaseForm.Cluster.ID,
+			"projectID":  projID,
+			"clusterID":  releaseForm.Cluster.ID,
+			"porterHost": app.ServerConf.ServerURL,
 		},
 		},
 	}
 	}