mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
feat(agent): add agent support (#1828)
This commit is contained in:
parent
77a85bd385
commit
2327d696e0
116 changed files with 1900 additions and 689 deletions
|
@ -4,12 +4,20 @@ angular.module('portainer.docker')
|
|||
|
||||
var helper = {};
|
||||
|
||||
helper.determineEndpointMode = function(info) {
|
||||
helper.determineEndpointMode = function(info, type) {
|
||||
var mode = {
|
||||
provider: '',
|
||||
role: ''
|
||||
role: '',
|
||||
agentProxy: false
|
||||
};
|
||||
|
||||
if (type === 2) {
|
||||
mode.provider = 'DOCKER_SWARM_MODE';
|
||||
mode.role = 'MANAGER';
|
||||
mode.agentProxy = true;
|
||||
return mode;
|
||||
}
|
||||
|
||||
if (!info.Swarm || _.isEmpty(info.Swarm.NodeID)) {
|
||||
if (info.ID === 'vSphere Integrated Containers') {
|
||||
mode.provider = 'VMWARE_VIC';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue