mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(core/home): fix an issue when connecting to an Edge kubernetes endpoint (#4274)
This commit is contained in:
parent
eb0278d230
commit
0019b22be5
3 changed files with 9 additions and 12 deletions
|
@ -1,16 +1,13 @@
|
|||
angular.module('portainer.kubernetes').factory('KubernetesHealth', [
|
||||
'$resource',
|
||||
'API_ENDPOINT_ENDPOINTS',
|
||||
'EndpointProvider',
|
||||
function KubernetesHealthFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||
function KubernetesHealthFactory($resource, API_ENDPOINT_ENDPOINTS) {
|
||||
'use strict';
|
||||
return $resource(
|
||||
API_ENDPOINT_ENDPOINTS + '/:endpointId/kubernetes/healthz',
|
||||
API_ENDPOINT_ENDPOINTS + '/:id/kubernetes/healthz',
|
||||
{},
|
||||
{
|
||||
endpointId: EndpointProvider.endpointID,
|
||||
},
|
||||
{
|
||||
ping: { method: 'GET', timeout: 15000 },
|
||||
ping: { method: 'GET', timeout: 15000, params: { id: 'id' } },
|
||||
}
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue