1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

fix(kubernetes/pods): save note (#4675)

* feat(kubernetes/pods): introduce patch api

* feat(k8s/pods): pod converter

* feat(kubernetes/pods): introduce patch api

* feat(k8s/pod): add annotations only if needed

* fix(k8s/pod): replace class with factory function
This commit is contained in:
Chaim Lev-Ari 2021-01-22 03:08:08 +02:00 committed by GitHub
parent 2b257d2785
commit 46ff8a01bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 132 additions and 1 deletions

View file

@ -31,6 +31,12 @@ angular.module('portainer.kubernetes').factory('KubernetesPods', [
create: { method: 'POST' },
update: { method: 'PUT' },
delete: { method: 'DELETE' },
patch: {
method: 'PATCH',
headers: {
'Content-Type': 'application/json-patch+json',
},
},
logs: {
method: 'GET',
params: { action: 'log' },