Open scones opened 3 years ago
i made a workaround for myself using this:
module K8s
class ResourceClient
def create_sub_resource resource
@transport.request(
method: 'POST',
path: path(resource.metadata.name, namespace: resource.metadata.namespace),
request_object: resource,
response_class: @resource_class
)
end
end
end
if others have a similar problem.
i am trying to create an eviction for a pod using the eviction api.
using
i get:
considering https://kubernetes.io/docs/tasks/administer-cluster/safely-drain-node/ the correct path for the post should be /api/v1/namespaces/some-namespace/pods/some-pod/eviction
this obviously can't work right now, as i have no interface to set the pod within the request.
leaving me to ask for a feature to cover this :)