Skip to content

Commit 13ef450

Browse files
committed
Remove /v2 from path in cloudkitty, as the CLI automatically adds it
1 parent 1f89106 commit 13ef450

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

controllers/cloudkittyapi_controller.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -460,21 +460,20 @@ func (r *CloudKittyAPIReconciler) reconcileInit(
460460
// expose the service (create service and return the created endpoint URLs)
461461
//
462462

463-
// V2
464463
publicEndpointData := endpoint.Data{
465464
Port: cloudkitty.CloudKittyPublicPort,
466-
Path: "/v2",
465+
Path: "",
467466
}
468467
internalEndpointData := endpoint.Data{
469468
Port: cloudkitty.CloudKittyInternalPort,
470-
Path: "/v2",
469+
Path: "",
471470
}
472471
cloudkittyEndpoints := map[service.Endpoint]endpoint.Data{
473472
service.EndpointPublic: publicEndpointData,
474473
service.EndpointInternal: internalEndpointData,
475474
}
476475

477-
apiEndpointsV3 := make(map[string]string)
476+
apiEndpoints := make(map[string]string)
478477

479478
for endpointType, data := range cloudkittyEndpoints {
480479
endpointTypeStr := string(endpointType)
@@ -564,7 +563,7 @@ func (r *CloudKittyAPIReconciler) reconcileInit(
564563
data.Protocol = ptr.To(service.ProtocolHTTPS)
565564
}
566565

567-
apiEndpointsV3[string(endpointType)], err = svc.GetAPIEndpoint(
566+
apiEndpoints[string(endpointType)], err = svc.GetAPIEndpoint(
568567
svcOverride.EndpointURL, data.Protocol, data.Path)
569568
if err != nil {
570569
instance.Status.Conditions.MarkFalse(

0 commit comments

Comments
 (0)