ContainerImage.Pinniped/internal/kubeclient
Andrew Keesler 0fc1f17866
internal/groupsuffix: mutate TokenCredentialRequest's Authenticator
This is a partial revert of 288d9c999e. For some reason it didn't occur to me
that we could do it this way earlier. Whoops.

This also contains a middleware update: mutation funcs can return an error now
and short-circuit the rest of the request/response flow. The idea here is that
if someone is configuring their kubeclient to use middleware, they are agreeing
to a narrow-er client contract by doing so (e.g., their TokenCredentialRequest's
must have an Spec.Authenticator.APIGroup set).

I also updated some internal/groupsuffix tests to be more realistic.

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2021-02-10 15:53:44 -05:00
..
copied.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
gvk.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
gvk_test.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
kubeclient.go internal/kubeclient: fix not found test and request body closing bug 2021-02-03 08:19:34 -05:00
kubeclient_test.go internal/groupsuffix: mutate TokenCredentialRequest's Authenticator 2021-02-10 15:53:44 -05:00
middleware.go internal/groupsuffix: mutate TokenCredentialRequest's Authenticator 2021-02-10 15:53:44 -05:00
middleware_test.go internal/groupsuffix: mutate TokenCredentialRequest's Authenticator 2021-02-10 15:53:44 -05:00
option.go internal/kubeclient: fix not found test and request body closing bug 2021-02-03 08:19:34 -05:00
path.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
path_test.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
roundtrip.go internal/kubeclient: fix not found test and request body closing bug 2021-02-03 08:19:34 -05:00
scheme.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
scheme_test.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
serializer.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
verb.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
verb_test.go internal/groupsuffix: mutate TokenCredentialRequest's Authenticator 2021-02-10 15:53:44 -05:00
watch.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00