Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

support new arklet for module controller #286

Merged
merged 1 commit into from
Nov 14, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
serviceAccountName: controller-manager
containers:
- name: module-controller
image: serverless-registry.cn-shanghai.cr.aliyuncs.com/opensource/test/module-controller:v0.6
image: serverless-registry.cn-shanghai.cr.aliyuncs.com/opensource/test/module-controller:v0.6.3
resources:
limits:
cpu: "500m"
Expand Down
2 changes: 1 addition & 1 deletion module-controller/internal/arklet/arklet_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (client *ArkletClient) InstallBiz(ip string, moduleInfo v1alpha1.ModuleInfo
} else {
url = fmt.Sprintf("http://%s:%s/%s", ip, strconv.Itoa(client.port), client.installPath)
}
data := []byte(fmt.Sprintf(`{"bizName": "%s", "bizVersion": "%s", "arkBizFilePath": "%s"}`, moduleInfo.Name, moduleInfo.Version, moduleInfo.Url))
data := []byte(fmt.Sprintf(`{"bizName": "%s", "bizVersion": "%s", "bizUrl": "%s"}`, moduleInfo.Name, moduleInfo.Version, moduleInfo.Url))
req, err := http.NewRequest("POST", url, bytes.NewBuffer(data))
if err != nil {
fmt.Println("Error creating install HTTP request:", err)
Expand Down
Loading