kubernetes/pkg/kubectl/genericclioptions
Monis Khan 631124cde4
Correctly apply request transforms with flattened resource builder
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: Monis Khan <mkhan@redhat.com>
2018-05-29 12:22:57 -04:00
..
printers add a discarding printer for testing and delegation 2018-05-22 08:47:42 -04:00
resource Correctly apply request transforms with flattened resource builder 2018-05-29 12:22:57 -04:00
BUILD remove unnecessary factory delegation for RESTClientGetter method 2018-05-28 15:12:41 +02:00
builder_flags_fake.go move resource builder flags to genericclioptions 2018-05-28 11:08:58 +02:00
builder_flags.go move filename flags to genericclioptions 2018-05-28 11:09:51 +02:00
config_flags_fake.go remove unnecessary factory delegation for RESTClientGetter method 2018-05-28 15:12:41 +02:00
config_flags.go start splitting polymorphic functions out of the factory 2018-05-17 08:55:31 -04:00
doc.go fix up record flags 2018-04-18 13:56:59 -04:00
filename_flags.go move filename flags to genericclioptions 2018-05-28 11:09:51 +02:00
io_options.go provide standard iostream struct for commands 2018-04-20 12:54:11 -04:00
json_yaml_flags_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
json_yaml_flags.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
name_flags_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
name_flags.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
print_flags.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
record_flags.go move f.Command out of the factory 2018-05-22 13:31:01 -04:00