-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
@JoelSpeed: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config.NegotiatedSerializer = contentConfig.NegotiatedSerializer | |
config.NegotiatedSerializer = resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer |
Maybe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes the line really long so I'm tempted to skip this suggestion /shrug
/test 1.13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This fix enables proper decoding of Kubernetes API errors and converts useless messages such as
error creating object: the server rejected our request for an unknown reason (post deployments.apps)
into proper error messages likeerror creating object: dryRun is not supported yet
CC @samuelyallop-pusher