{"action":"created","issue":{"url":"https://api.github.com/repos/godaddy/kubernetes-client/issues/176","repository_url":"https://api.github.com/repos/godaddy/kubernetes-client","labels_url":"https://api.github.com/repos/godaddy/kubernetes-client/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/godaddy/kubernetes-client/issues/176/comments","events_url":"https://api.github.com/repos/godaddy/kubernetes-client/issues/176/events","html_url":"https://github.com/godaddy/kubernetes-client/issues/176","id":289304734,"number":176,"title":"How patch working?","user":{"login":"vforv","id":10942178,"avatar_url":"https://avatars1.githubusercontent.com/u/10942178?v=4","gravatar_id":"","url":"https://api.github.com/users/vforv","html_url":"https://github.com/vforv","followers_url":"https://api.github.com/users/vforv/followers","following_url":"https://api.github.com/users/vforv/following{/other_user}","gists_url":"https://api.github.com/users/vforv/gists{/gist_id}","starred_url":"https://api.github.com/users/vforv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vforv/subscriptions","organizations_url":"https://api.github.com/users/vforv/orgs","repos_url":"https://api.github.com/users/vforv/repos","events_url":"https://api.github.com/users/vforv/events{/privacy}","received_events_url":"https://api.github.com/users/vforv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-17T15:24:06Z","updated_at":"2018-03-05T16:14:25Z","closed_at":null,"author_association":"NONE","body":"Could you explain more about patch function?\r\n\r\nIs it for the rolling update?\r\n\r\nI tried it like this:\r\n\r\n```\r\ngetK8SAPI(prod).namespaces.replicationcontrollers('http-rc').patch({\r\n    body: patch\r\n  }, (err, result) => {\r\n    resultArr.push(result);\r\n    res();\r\n  })\r\n```\r\n\r\nWhat is `replicationcontrollers('http-rc')`?\r\n\r\n```\r\n{\r\n    body: patch\r\n  }\r\n```\r\n\r\nWhat should be inside body value? Any example? I need to update my current image how can I do that?"},"comment":{"url":"https://api.github.com/repos/godaddy/kubernetes-client/issues/comments/370471886","html_url":"https://github.com/godaddy/kubernetes-client/issues/176#issuecomment-370471886","issue_url":"https://api.github.com/repos/godaddy/kubernetes-client/issues/176","id":370471886,"user":{"login":"TWood67","id":5759381,"avatar_url":"https://avatars0.githubusercontent.com/u/5759381?v=4","gravatar_id":"","url":"https://api.github.com/users/TWood67","html_url":"https://github.com/TWood67","followers_url":"https://api.github.com/users/TWood67/followers","following_url":"https://api.github.com/users/TWood67/following{/other_user}","gists_url":"https://api.github.com/users/TWood67/gists{/gist_id}","starred_url":"https://api.github.com/users/TWood67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TWood67/subscriptions","organizations_url":"https://api.github.com/users/TWood67/orgs","repos_url":"https://api.github.com/users/TWood67/repos","events_url":"https://api.github.com/users/TWood67/events{/privacy}","received_events_url":"https://api.github.com/users/TWood67/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T16:14:25Z","updated_at":"2018-03-05T16:14:25Z","author_association":"COLLABORATOR","body":"@jtslear Could you try including the name field of the container you are trying to patch? According to the docs (https://kubernetes-v1-4.github.io/docs/user-guide/kubectl/kubectl_patch/) `name` is required when trying to update a container image."}}
{"actor":{"display_login":"TWood67"}}