mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
refactor(app): details widget migration [EE-5352] (#8886)
This commit is contained in:
parent
fdd79cece8
commit
af77e33993
57 changed files with 2046 additions and 1079 deletions
|
@ -13,7 +13,6 @@ class KubernetesDaemonSetService {
|
|||
this.getAllAsync = this.getAllAsync.bind(this);
|
||||
this.createAsync = this.createAsync.bind(this);
|
||||
this.patchAsync = this.patchAsync.bind(this);
|
||||
this.rollbackAsync = this.rollbackAsync.bind(this);
|
||||
this.deleteAsync = this.deleteAsync.bind(this);
|
||||
}
|
||||
|
||||
|
@ -110,23 +109,6 @@ class KubernetesDaemonSetService {
|
|||
delete(daemonSet) {
|
||||
return this.$async(this.deleteAsync, daemonSet);
|
||||
}
|
||||
|
||||
/**
|
||||
* ROLLBACK
|
||||
*/
|
||||
async rollbackAsync(namespace, name, payload) {
|
||||
try {
|
||||
const params = new KubernetesCommonParams();
|
||||
params.id = name;
|
||||
await this.KubernetesDaemonSets(namespace).rollback(params, payload).$promise;
|
||||
} catch (err) {
|
||||
throw new PortainerError('Unable to rollback daemonset', err);
|
||||
}
|
||||
}
|
||||
|
||||
rollback(namespace, name, payload) {
|
||||
return this.$async(this.rollbackAsync, namespace, name, payload);
|
||||
}
|
||||
}
|
||||
|
||||
export default KubernetesDaemonSetService;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue