Closed xanderflood closed 4 years ago
I added a note to #220 about the fact that #217 will screw it up, and it may screw up other intervening PRs as well. In most cases the unit tests should catch it, but not in this case because we're not unit testing all the validations (which seems reasonable to me). Whenever/ifever these two PRs are merged, there will need to be some code intervention between them.
Yep can confirm it is needed in some cases for periodic jobs that are triggered from another source.
The provider currently enforces that all configured
docker_service
s have at least one replica. The underlying Swarm SDK supports zero replicas, and there are valid use cases for this:Since this is a one-character change, I went ahead and created a PR for it (https://github.com/terraform-providers/terraform-provider-docker/pull/220).