|
|
@ -6,6 +6,7 @@ import (
|
|
|
|
|
|
|
|
|
|
|
|
portainer "github.com/portainer/portainer/api"
|
|
|
|
portainer "github.com/portainer/portainer/api"
|
|
|
|
"github.com/portainer/portainer/api/dataservices"
|
|
|
|
"github.com/portainer/portainer/api/dataservices"
|
|
|
|
|
|
|
|
"github.com/portainer/portainer/api/internal/unique"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
var ErrEdgeGroupNotFound = errors.New("edge group was not found")
|
|
|
|
var ErrEdgeGroupNotFound = errors.New("edge group was not found")
|
|
|
@ -32,7 +33,7 @@ func EdgeStackRelatedEndpoints(edgeGroupIDs []portainer.EdgeGroupID, endpoints [
|
|
|
|
edgeStackEndpoints = append(edgeStackEndpoints, EdgeGroupRelatedEndpoints(edgeGroup, endpoints, endpointGroups)...)
|
|
|
|
edgeStackEndpoints = append(edgeStackEndpoints, EdgeGroupRelatedEndpoints(edgeGroup, endpoints, endpointGroups)...)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return edgeStackEndpoints, nil
|
|
|
|
return unique.Unique(edgeStackEndpoints), nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type EndpointRelationsConfig struct {
|
|
|
|
type EndpointRelationsConfig struct {
|
|
|
|