Skip to content

Commit 7dec2d1

Browse files
committed
skip some urls with a tag
1 parent c05254c commit 7dec2d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/api/v1/nomad_service.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,11 @@ func (s *NomadService) getUrlDataFromTags(jobName string, taskName string, tags
362362
return
363363
}
364364

365+
if slices.Contains(tags, "molecule.skip=true") {
366+
logger.Log.Debug().Msgf("Skipping service %s due to molecule.skip tag", jobName)
367+
return
368+
}
369+
365370
for _, tag := range tags {
366371
if traefikRuleTagRegex.MatchString(tag) {
367372
url := s.extractURLFromTraefikTag(tag)

0 commit comments

Comments
 (0)