• Monis Khan's avatar
    Correctly apply request transforms with flattened resource builder · 631124cd
    Monis Khan authored
    This change moves the NewClientWithOptions call into
    Builder.getClient.  Since getClient is the only way for Builder and
    its visitors to create a RESTClient, we can reasonably guarantee
    that the request transforms will be honored.  Previously, it was
    possible for a call to NewFlattenListVisitor to return resource Info
    objects whose Client field did not honor the request transforms.
    Signed-off-by: 's avatarMonis Khan <mkhan@redhat.com>
    631124cd
interfaces.go 2.93 KB