Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #117 from pusher/fix-unknown-errors
Browse files Browse the repository at this point in the history
Use dynamicCodec for decoding errors
  • Loading branch information
JoelSpeed committed Apr 2, 2019
2 parents df2ea2f + 90a6b28 commit d704e29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/utils/client/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ func (a *Applier) configFor(gv schema.GroupVersion) (*rest.Config, error) {
config.APIPath = "apis/"
}

config.NegotiatedSerializer = serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{Serializer: unstructured.UnstructuredJSONScheme})
contentConfig := resource.UnstructuredPlusDefaultContentConfig()
config.NegotiatedSerializer = contentConfig.NegotiatedSerializer
return config, nil
}

Expand Down

0 comments on commit d704e29

Please sign in to comment.