Skip to content

Commit 7a74e40

Browse files
committed
update openshift API paths to groupified path
1 parent 67b1f78 commit 7a74e40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openshift/openshift.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (c *openshiftClient) doRequest(ctx context.Context, method, path string, re
136136
// getImage loads the specified image object.
137137
func (c *openshiftClient) getImage(ctx context.Context, imageStreamImageName string) (*image, error) {
138138
// 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)
140140
body, err := c.doRequest(ctx, "GET", path, nil)
141141
if err != nil {
142142
return nil, err
@@ -265,7 +265,7 @@ func (s *openshiftImageSource) ensureImageIsResolved(ctx context.Context) error
265265
}
266266

267267
// 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)
269269
body, err := s.client.doRequest(ctx, "GET", path, nil)
270270
if err != nil {
271271
return err

0 commit comments

Comments
 (0)