mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
fix(edge): stack associated no dynamic group being deployed [EE-5531] (#10224)
This commit is contained in:
parent
490e4ec655
commit
440f4e8dda
6 changed files with 360 additions and 7 deletions
|
@ -69,7 +69,7 @@ func GetEndpointsFromEdgeGroups(edgeGroupIDs []portainer.EdgeGroupID, datastore
|
|||
return response, nil
|
||||
}
|
||||
|
||||
// edgeGroupRelatedToEndpoint returns true is edgeGroup is associated with environment(endpoint)
|
||||
// edgeGroupRelatedToEndpoint returns true if edgeGroup is associated with environment(endpoint)
|
||||
func edgeGroupRelatedToEndpoint(edgeGroup *portainer.EdgeGroup, endpoint *portainer.Endpoint, endpointGroup *portainer.EndpointGroup) bool {
|
||||
if !edgeGroup.Dynamic {
|
||||
for _, endpointID := range edgeGroup.Endpoints {
|
||||
|
@ -91,5 +91,5 @@ func edgeGroupRelatedToEndpoint(edgeGroup *portainer.EdgeGroup, endpoint *portai
|
|||
return len(intersection) != 0
|
||||
}
|
||||
|
||||
return tag.Contains(edgeGroupTags, endpointTags)
|
||||
return tag.FullMatch(edgeGroupTags, endpointTags)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue