From 79104cb55c0246f1b1e4ae70badf8fde57315059 Mon Sep 17 00:00:00 2001 From: Tomokatsu Iguchi Date: Tue, 25 Sep 2018 13:26:39 +0900 Subject: [PATCH] fix JSON syntax (#9899) when i hit the command `kubectl patch serviceaccount default -p '{\"imagePullSecrets\": [{\"name\": \"myregistrykey\"}]}'` then i got this error `Error from server (BadRequest): invalid character '\\' looking for beginning of object key string` But i stripped all back slashes, and it worked. If this issue is caused only in my specific environment, close this pull-request. My environment is ... - Docker for Mac: Version 18.06.0-ce-mac70 (26399), Kubernetes: v1.10.3