Skip to content

Commit

Permalink
fix(backend): kubernetes-client-node backend support for patch (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
Silas Boyd-Wickizer committed Jun 14, 2019
1 parent 66e0328 commit 43bb7fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backends/kubernetes-client-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ class ClientNodeBackend {
return acc
}, [])

const extraOptions = {}
if (options.headers) {
extraOptions.headers = options.headers
}
args.push(extraOptions)

return apiClient[method].apply(apiClient, args)
.then(res => {
res.statusCode = res.response.statusCode
Expand Down

0 comments on commit 43bb7fc

Please sign in to comment.