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) { ...@@ -164,7 +164,7 @@ func (conf *Config) Sync() (err error) {
// update the services tracked by the backend // update the services tracked by the backend
req, err = http.NewRequest( req, err = http.NewRequest(
"PUT", "PUT",
"https://"+conf.Hostname+"/backend/clientapi/config", "https://"+conf.Hostname+"/client/config",
bytes.NewReader(strippedConfigBytes), bytes.NewReader(strippedConfigBytes),
) )
if err != nil { if err != nil {
......
...@@ -52,7 +52,7 @@ func deregister(conf *config.Config) { ...@@ -52,7 +52,7 @@ func deregister(conf *config.Config) {
req, err = http.NewRequest( req, err = http.NewRequest(
"PUT", "PUT",
"https://"+conf.Hostname+"/backend/clientapi/deregister", "https://"+conf.Hostname+"/client/deregister",
nil, nil,
) )
if err != nil { if err != nil {
......
...@@ -13,8 +13,8 @@ import ( ...@@ -13,8 +13,8 @@ import (
"time" "time"
"git.scc.kit.edu/feudal/feudalClient/config" "git.scc.kit.edu/feudal/feudalClient/config"
"git.scc.kit.edu/feudal/feudalClient/deployments" deps "git.scc.kit.edu/feudal/feudalClient/deployments"
"git.scc.kit.edu/feudal/feudalScripts/v2" scripts "git.scc.kit.edu/feudal/feudalScripts/v2"
) )
type ( type (
...@@ -236,7 +236,7 @@ func (sink *Sink) sendReply(reply deps.Reply) (err error) { ...@@ -236,7 +236,7 @@ func (sink *Sink) sendReply(reply deps.Reply) (err error) {
log.Printf("Dep Response:\n%s", taskResponse) 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 var req *http.Request
req, err = http.NewRequest("PATCH", url, bytes.NewReader(taskResponse)) req, err = http.NewRequest("PATCH", url, bytes.NewReader(taskResponse))
if err != nil { if err != nil {
......
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
"time" "time"
"git.scc.kit.edu/feudal/feudalClient/config" "git.scc.kit.edu/feudal/feudalClient/config"
"git.scc.kit.edu/feudal/feudalClient/deployments" deps "git.scc.kit.edu/feudal/feudalClient/deployments"
) )
type ( type (
...@@ -35,7 +35,7 @@ func (src Source) fetchDeps(sink chan<- deps.Dep) (err error) { ...@@ -35,7 +35,7 @@ func (src Source) fetchDeps(sink chan<- deps.Dep) (err error) {
} }
// construct a request // 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) req, err := http.NewRequest("GET", uri, nil)
if err != nil { if err != nil {
err = fmt.Errorf("Request creation failed: %s", err) 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