Repository navigation
Container definition API - #7714
Conversation
Co-authored-by: Sergei Egorov <bsideup@gmail.com>
| private boolean privilegedMode; | ||
|
|
||
| @NonNull | ||
| private List<VolumesFrom> volumesFroms = new ArrayList<>(); |
There was a problem hiding this comment.
Will we move it in a follow-up PR to avoid breaking changes?
| Map<String, String> combinedLabels = new HashMap<>(); | ||
| combinedLabels.putAll(labels); | ||
| if (createCommand.getLabels() != null) { | ||
| combinedLabels.putAll(createCommand.getLabels()); | ||
| } | ||
|
|
||
| createCommand.withLabels(combinedLabels); |
There was a problem hiding this comment.
This is a breaking change, as previously we were combining the labels
| Map<String, String> combinedLabels = new HashMap<>(); | ||
| combinedLabels.putAll(labels); | ||
| if (createCommand.getLabels() != null) { | ||
| combinedLabels.putAll(createCommand.getLabels()); | ||
| } | ||
|
|
||
| createCommand.withLabels(combinedLabels); |
There was a problem hiding this comment.
This breaks the order with regards to CreateContainerCmdModifier
There was a problem hiding this comment.
Since this is a change to to an undocumented internal behavior, we are fine with accepting it.
|
Sadly it broke our tests. 😄 |
|
Sorry, but that doesn't provide much information about the issue you are having. We have been reported about some regressions and some of them are fixed now, see this list. There is one more that should be fixed tomorrow. If you can not find yours, please feel free to open a new issue. |
|
Hi @eddumelendez, |
Introduce `ContainerDef` and apply it to `PortForwardingContainer` and `MongoDBContainer`. `ContainerDef` is an internal API used by `GenericContainer` to decouple the state of container creation and the running state. --------- Co-authored-by: Sergei Egorov <bsideup@gmail.com>
Introduce
ContainerDefand apply it toPortForwardingContainerand
MongoDBContainer.