{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/61103","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/61103/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/61103/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/61103/events","html_url":"https://github.com/kubernetes/kubernetes/issues/61103","id":304731270,"number":61103,"title":"HTTP 415 when trying to patch a deployment","user":{"login":"chrissound","id":1499652,"avatar_url":"https://avatars0.githubusercontent.com/u/1499652?v=4","gravatar_id":"","url":"https://api.github.com/users/chrissound","html_url":"https://github.com/chrissound","followers_url":"https://api.github.com/users/chrissound/followers","following_url":"https://api.github.com/users/chrissound/following{/other_user}","gists_url":"https://api.github.com/users/chrissound/gists{/gist_id}","starred_url":"https://api.github.com/users/chrissound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrissound/subscriptions","organizations_url":"https://api.github.com/users/chrissound/orgs","repos_url":"https://api.github.com/users/chrissound/repos","events_url":"https://api.github.com/users/chrissound/events{/privacy}","received_events_url":"https://api.github.com/users/chrissound/received_events","type":"User","site_admin":false},"labels":[{"id":173493835,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/api-machinery","name":"sig/api-machinery","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":{"login":"jennybuckley","id":31416425,"avatar_url":"https://avatars2.githubusercontent.com/u/31416425?v=4","gravatar_id":"","url":"https://api.github.com/users/jennybuckley","html_url":"https://github.com/jennybuckley","followers_url":"https://api.github.com/users/jennybuckley/followers","following_url":"https://api.github.com/users/jennybuckley/following{/other_user}","gists_url":"https://api.github.com/users/jennybuckley/gists{/gist_id}","starred_url":"https://api.github.com/users/jennybuckley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennybuckley/subscriptions","organizations_url":"https://api.github.com/users/jennybuckley/orgs","repos_url":"https://api.github.com/users/jennybuckley/repos","events_url":"https://api.github.com/users/jennybuckley/events{/privacy}","received_events_url":"https://api.github.com/users/jennybuckley/received_events","type":"User","site_admin":false},"assignees":[{"login":"jennybuckley","id":31416425,"avatar_url":"https://avatars2.githubusercontent.com/u/31416425?v=4","gravatar_id":"","url":"https://api.github.com/users/jennybuckley","html_url":"https://github.com/jennybuckley","followers_url":"https://api.github.com/users/jennybuckley/followers","following_url":"https://api.github.com/users/jennybuckley/following{/other_user}","gists_url":"https://api.github.com/users/jennybuckley/gists{/gist_id}","starred_url":"https://api.github.com/users/jennybuckley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennybuckley/subscriptions","organizations_url":"https://api.github.com/users/jennybuckley/orgs","repos_url":"https://api.github.com/users/jennybuckley/repos","events_url":"https://api.github.com/users/jennybuckley/events{/privacy}","received_events_url":"https://api.github.com/users/jennybuckley/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-03-13T11:45:34Z","updated_at":"2018-03-15T20:41:55Z","closed_at":null,"author_association":"NONE","body":" /kind bug\r\n\r\n**What happened**:\r\n\r\nReceived the following HTTP 415 response:\r\n```\r\n    ( StatusCodeException \r\n        ( Response \r\n            { responseStatus = Status \r\n                { statusCode = 415\r\n                , statusMessage = \"Unsupported Media Type\"\r\n                } \r\n            , responseVersion = HTTP/1.1\r\n            , responseHeaders = \r\n                [ \r\n                    ( \"Content-Type\"\r\n                    , \"application/json\"\r\n                    ) \r\n                , \r\n                    ( \"Date\"\r\n                    , \"Tue, 13 Mar 2018 11:34:20 GMT\"\r\n                    ) \r\n                , \r\n                    ( \"Content-Length\"\r\n                    , \"187\"\r\n                    ) \r\n                ] \r\n            , responseBody = ()\r\n            , responseCookieJar = CJ { expose = [] }\r\n            , responseClose' = ResponseClose\r\n            } \r\n        ) \"{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"the server responded with the status code 415 but did not return more information\",\"details\":{},\"code\":415}\r\n\"\r\n    )\r\n```\r\n\r\n**What you expected to happen**:\r\n\r\nFor the deployment to be patched and a successful HTTP 200 response.\r\n\r\nHow to reproduce it (as minimally and precisely as possible):\r\n(I'm aware of the auth key present - it's just for development purposes)\r\n```\r\nURL: /apis/apps/v1/namespaces/diyclientapps/deployments/testingchris4\r\nMethod: PATCH\r\nHeaders: [(\"Content-Type\",\"application/json\"),(\"Authorization\",\"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImRlZmF1bHQtdG9rZW4tZG1sODUiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGVmYXVsdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjAyNmU5YjU0LTI1ZjEtMTFlOC1iNzI3LTA4MDAyN2I2ZDYyOCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0OmRlZmF1bHQifQ.GxmZWZcne9XQ6MtmulO9KNKyu6xoq0N7bNmbbUy2HzaMIk7Z5XDtVQrPDj8ncIsSFa1AU5SXOyKLELU3ZU798t5mIZ_rlM3AYS8T9-U3Q1P4nDuSW-S7L9rb9DxbZ1YarOcr04iMqTl3IxwKQRmPE_ha_kxWW44yC4zO3ufd5sN6Wtzg88XM_asT_u8dRYa8xXPEuLVMXRrP_U1dFnF7CtlWUVEad5xKB6pgG70JZz3hp0BkEGzx3Qp1Y-NwtZrCYEjwmQuPwJG57xsrfzPlQei23kEB720y1wfLCs6QCHuPTE0w9u_gjz2iiqCkjZsXTyVOXoJ6s4Z569FeoQesSA\"),(\"User-Agent\",\"haskell wreq-0.5.1.0\")]\r\nBody: \"{\\\"apiVersion\\\":\\\"apps/v1\\\",\\\"kind\\\":\\\"Deployment\\\",\\\"spec\\\":{\\\"selector\\\":{\\\"matchLabels\\\":{\\\"appId\\\":\\\"testingchris4\\\"}},\\\"template\\\":{\\\"spec\\\":{\\\"containers\\\":[{\\\"image\\\":\\\"diyapploopback2:latest\\\",\\\"imagePullPolicy\\\":\\\"Never\\\",\\\"resources\\\":{\\\"limits\\\":{\\\"memory\\\":\\\"256Mi\\\",\\\"cpu\\\":\\\"500m\\\"},\\\"requests\\\":{\\\"memory\\\":\\\"128Mi\\\",\\\"cpu\\\":\\\"250m\\\"}},\\\"name\\\":\\\"nginx\\\",\\\"ports\\\":[{\\\"containerPort\\\":3000}]},{\\\"image\\\":\\\"mariadb:10.3\\\",\\\"env\\\":[{\\\"value\\\":\\\"passwordTempXyz\\\",\\\"name\\\":\\\"MYSQL_ROOT_PASSWORD\\\"}],\\\"volumeMounts\\\":[{\\\"name\\\":\\\"mysql-persistent-storage\\\",\\\"mountPath\\\":\\\"/var/lib/mysql\\\"}],\\\"resources\\\":{\\\"limits\\\":{\\\"memory\\\":\\\"128Mi\\\",\\\"cpu\\\":\\\"500m\\\"},\\\"requests\\\":{\\\"memory\\\":\\\"128Mi\\\",\\\"cpu\\\":\\\"250m\\\"}},\\\"name\\\":\\\"mariadb\\\"}],\\\"volumes\\\":[{\\\"persistentVolumeClaim\\\":{\\\"claimName\\\":\\\"testingchris4\\\"},\\\"name\\\":\\\"mysql-persistent-storage\\\"}]},\\\"metadata\\\":{\\\"labels\\\":{\\\"appId\\\":\\\"testingchris4\\\"}}},\\\"replicas\\\":1},\\\"metadata\\\":{\\\"name\\\":\\\"testingchris4\\\",\\\"labels\\\":{\\\"appId\\\":\\\"testingchris4\\\"}}}\"\r\n\r\n```\r\n\r\n**Environment**: Linux / Haskell / HTTP API\r\n- Kubernetes version (use `kubectl version`):\r\n- OS (e.g. from /etc/os-release): Arch Linux\r\n- Kernel (e.g. `uname -a`): Linux archamd 4.14.24-1-lts #1 SMP Tue Mar 6 17:05:53 CET 2018 x86_64 GNU/Linux\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/373516087","html_url":"https://github.com/kubernetes/kubernetes/issues/61103#issuecomment-373516087","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/61103","id":373516087,"user":{"login":"jennybuckley","id":31416425,"avatar_url":"https://avatars2.githubusercontent.com/u/31416425?v=4","gravatar_id":"","url":"https://api.github.com/users/jennybuckley","html_url":"https://github.com/jennybuckley","followers_url":"https://api.github.com/users/jennybuckley/followers","following_url":"https://api.github.com/users/jennybuckley/following{/other_user}","gists_url":"https://api.github.com/users/jennybuckley/gists{/gist_id}","starred_url":"https://api.github.com/users/jennybuckley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennybuckley/subscriptions","organizations_url":"https://api.github.com/users/jennybuckley/orgs","repos_url":"https://api.github.com/users/jennybuckley/repos","events_url":"https://api.github.com/users/jennybuckley/events{/privacy}","received_events_url":"https://api.github.com/users/jennybuckley/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T20:41:55Z","updated_at":"2018-03-15T20:41:55Z","author_association":"CONTRIBUTOR","body":"/remove-sig api-machinery"}}
{"actor":{"display_login":"jennybuckley"}}