Skip to content
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
2 changes: 1 addition & 1 deletion chart/ipam-operator/values.prod.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
global:
urls:
ipamApi: "https://ipam-api.vitistack.io"
ipamApi: "https://ipam-api.vitistack.io/v2"
controller:
repository: "ncr.sky.nhn.no/ghcr/vitistack/ipam-operator"
tag: "0.0.1-rc31"
Expand Down
2 changes: 1 addition & 1 deletion chart/ipam-operator/values.test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
global:
urls:
ipamApi: "https://ipam-api.test.vitistack.io"
ipamApi: "https://ipam-api.test.vitistack.io/v2"
controller:
repository: "ncr.sky.nhn.no/ghcr/vitistack/ipam-operator"
tag: "0.0.1-rc31"
Expand Down
4 changes: 2 additions & 2 deletions internal/utils/ipam-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func RequestIP(request apicontracts.IpamApiRequest) (apicontracts.IpamApiRespons
}

// Make the HTTP POST request
req, err := http.NewRequest("POST", ipamApiUrl, bytes.NewBuffer(jsonData))
req, err := http.NewRequest("POST", ipamApiUrl+"/address", bytes.NewBuffer(jsonData))
if err != nil {
return apicontracts.IpamApiResponse{}, fmt.Errorf("fail to create new http request: %v", err)
}
Expand Down Expand Up @@ -115,7 +115,7 @@ func DeleteIP(request apicontracts.IpamApiRequest) (apicontracts.IpamApiResponse
}

// Make the HTTP POST request
req, err := http.NewRequest("DELETE", ipamApiUrl, bytes.NewBuffer(jsonData))
req, err := http.NewRequest("DELETE", ipamApiUrl+"/service", bytes.NewBuffer(jsonData))
if err != nil {
return apicontracts.IpamApiResponse{}, err
}
Expand Down