kontena / k8s-client

Ruby Kubernetes API client
Apache License 2.0
76 stars 26 forks source link

Server addresses with path-prefix do not work #157

Closed kke closed 5 years ago

kke commented 5 years ago

As discussed in #110 - there seems to be some sort of bug in the path prefix handling.

The path is in the request twice.

client.api('v1').resource('ingresses', namespace: 'default').list()

Tries to make a request to:

/k8s/clusters/c-blahblah/k8s/clusters/c-blahblah/api/v1

And receives NotFound.