mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
feature(helm): move helm charts inside advance deployments (create from manifest) [EE-5999] (#10395)
This commit is contained in:
parent
9885694df6
commit
b468070945
49 changed files with 877 additions and 388 deletions
|
@ -3,9 +3,10 @@ import angular from 'angular';
|
|||
angular.module('portainer.kubernetes').factory('HelmFactory', HelmFactory);
|
||||
|
||||
/* @ngInject */
|
||||
function HelmFactory($resource, API_ENDPOINT_ENDPOINTS) {
|
||||
function HelmFactory($resource, API_ENDPOINT_ENDPOINTS, API_ENDPOINT_USERS) {
|
||||
const helmUrl = API_ENDPOINT_ENDPOINTS + '/:endpointId/kubernetes/helm';
|
||||
const templatesUrl = 'api/templates/helm';
|
||||
const userHelmUrl = API_ENDPOINT_USERS + '/:userId/helm';
|
||||
|
||||
return $resource(
|
||||
helmUrl,
|
||||
|
@ -27,11 +28,11 @@ function HelmFactory($resource, API_ENDPOINT_ENDPOINTS) {
|
|||
},
|
||||
getHelmRepositories: {
|
||||
method: 'GET',
|
||||
url: `${helmUrl}/repositories`,
|
||||
url: `${userHelmUrl}/repositories`,
|
||||
},
|
||||
addHelmRepository: {
|
||||
method: 'POST',
|
||||
url: `${helmUrl}/repositories`,
|
||||
url: `${userHelmUrl}/repositories`,
|
||||
},
|
||||
list: {
|
||||
method: 'GET',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue