Commit dfce6039 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Adapt to url changes at the backend

parent 93ac1800
Pipeline #66062 failed with stages
in 1 minute and 27 seconds
......@@ -164,7 +164,7 @@ func (conf *Config) Sync() (err error) {
// update the services tracked by the backend
req, err = http.NewRequest(
"PUT",
"https://"+conf.Hostname+"/backend/clientapi/config",
"https://"+conf.Hostname+"/client/config",
bytes.NewReader(strippedConfigBytes),
)
if err != nil {
......
......@@ -52,7 +52,7 @@ func deregister(conf *config.Config) {
req, err = http.NewRequest(
"PUT",
"https://"+conf.Hostname+"/backend/clientapi/deregister",
"https://"+conf.Hostname+"/client/deregister",
nil,
)
if err != nil {
......
......@@ -13,8 +13,8 @@ import (
"time"
"git.scc.kit.edu/feudal/feudalClient/config"
"git.scc.kit.edu/feudal/feudalClient/deployments"
"git.scc.kit.edu/feudal/feudalScripts/v2"
deps "git.scc.kit.edu/feudal/feudalClient/deployments"
scripts "git.scc.kit.edu/feudal/feudalScripts/v2"
)
type (
......@@ -236,7 +236,7 @@ func (sink *Sink) sendReply(reply deps.Reply) (err error) {
log.Printf("Dep Response:\n%s", taskResponse)
}
url := fmt.Sprintf("https://%s/backend/clientapi/dep-state", sink.Config.Hostname)
url := fmt.Sprintf("https://%s/client/dep-state", sink.Config.Hostname)
var req *http.Request
req, err = http.NewRequest("PATCH", url, bytes.NewReader(taskResponse))
if err != nil {
......
......@@ -10,7 +10,7 @@ import (
"time"
"git.scc.kit.edu/feudal/feudalClient/config"
"git.scc.kit.edu/feudal/feudalClient/deployments"
deps "git.scc.kit.edu/feudal/feudalClient/deployments"
)
type (
......@@ -35,7 +35,7 @@ func (src Source) fetchDeps(sink chan<- deps.Dep) (err error) {
}
// construct a request
uri := "https://" + src.Config.Hostname + "/backend/clientapi/dep-states"
uri := "https://" + src.Config.Hostname + "/client/dep-states"
req, err := http.NewRequest("GET", uri, nil)
if err != nil {
err = fmt.Errorf("Request creation failed: %s", err)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment