@@ -136,7 +136,7 @@ func (c *openshiftClient) doRequest(ctx context.Context, method, path string, re
136
136
// getImage loads the specified image object.
137
137
func (c * openshiftClient ) getImage (ctx context.Context , imageStreamImageName string ) (* image , error ) {
138
138
// FIXME: validate components per validation.IsValidPathSegmentName?
139
- path := fmt .Sprintf ("/oapi /v1/namespaces/%s/imagestreamimages/%s@%s" , c .ref .namespace , c .ref .stream , imageStreamImageName )
139
+ path := fmt .Sprintf ("/apis/image.openshift.io /v1/namespaces/%s/imagestreamimages/%s@%s" , c .ref .namespace , c .ref .stream , imageStreamImageName )
140
140
body , err := c .doRequest (ctx , "GET" , path , nil )
141
141
if err != nil {
142
142
return nil , err
@@ -265,7 +265,7 @@ func (s *openshiftImageSource) ensureImageIsResolved(ctx context.Context) error
265
265
}
266
266
267
267
// FIXME: validate components per validation.IsValidPathSegmentName?
268
- path := fmt .Sprintf ("/oapi /v1/namespaces/%s/imagestreams/%s" , s .client .ref .namespace , s .client .ref .stream )
268
+ path := fmt .Sprintf ("/apis/image.openshift.io /v1/namespaces/%s/imagestreams/%s" , s .client .ref .namespace , s .client .ref .stream )
269
269
body , err := s .client .doRequest (ctx , "GET" , path , nil )
270
270
if err != nil {
271
271
return err
@@ -476,7 +476,7 @@ sigExists:
476
476
Content : newSig ,
477
477
}
478
478
body , err := json .Marshal (sig )
479
- _ , err = d .client .doRequest (ctx , "POST" , "/oapi /v1/imagesignatures" , body )
479
+ _ , err = d .client .doRequest (ctx , "POST" , "/apis/image.openshift.io /v1/imagesignatures" , body )
480
480
if err != nil {
481
481
return err
482
482
}
0 commit comments