Update use of DirectCodecFactory

Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
James Munnelly 2019-09-07 12:27:26 +01:00
parent 2bbb3a1e88
commit 3324ca0959
2 changed files with 1212 additions and 201 deletions

1411
LICENSES

File diff suppressed because it is too large Load Diff

View File

@ -116,7 +116,7 @@ func (r *Webhook) CleanUp(ch *v1alpha1.ChallengeRequest) error {
func (r *Webhook) Initialize(kubeClientConfig *rest.Config, stopCh <-chan struct{}) error {
cfgShallowCopy := *kubeClientConfig
cfgShallowCopy.APIPath = "/apis"
cfgShallowCopy.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: scheme.Codecs}
cfgShallowCopy.NegotiatedSerializer = serializer.WithoutConversionCodecFactory{CodecFactory: scheme.Codecs}
// We defer setting the GroupVersion of the rest client config to the
// restClientForGroup function.