-
-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default labels when Ryuk is disabled (#1339)
* Add org.testcontainers label For consistency with the other Testcontainers lang implementations, label `org.testcontainers=true` should be added. * Add default labels when ryuk is disabled * Remove default labels from reaper as they would be added later * Fix test * Fix lint * Do not use map reference * Update internal/testcontainersdocker/labels.go Co-authored-by: Manuel de la Peña <[email protected]> * Update docker.go Co-authored-by: Manuel de la Peña <[email protected]> --------- Co-authored-by: Manuel de la Peña <[email protected]>
- Loading branch information
1 parent
c82a1c5
commit b908ddc
Showing
4 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
package testcontainersdocker | ||
|
||
import "github.com/testcontainers/testcontainers-go/internal" | ||
|
||
const ( | ||
LabelBase = "org.testcontainers" | ||
LabelLang = LabelBase + ".lang" | ||
LabelReaper = LabelBase + ".reaper" | ||
LabelSessionID = LabelBase + ".sessionId" | ||
LabelVersion = LabelBase + ".version" | ||
) | ||
|
||
func DefaultLabels() map[string]string { | ||
return map[string]string{ | ||
LabelBase: "true", | ||
LabelLang: "go", | ||
LabelVersion: internal.Version, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters