Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Start and Stop service Starlark instructions for Docker (#694)
## Description: Add `plan.start_service` and `plan.stop_service` Starlark instructions for the Docker backend. Support for the K8S backend first requires an update to the Gateway to manage the port forwarder connection during stop and start operations. The k8s backend code itself is ready and the changes (small) are in this PR. No new backend methods are introduced, the goal being to re-use the current code as much as possible. All the changes under `api/` and `cli/` are related to the renaming of the API method `StartServices` to `AddServices`. Most of the code added is unit and integration tests. The map of service registrations at the service network layer is used as part of the existing start service process so I am using this map to store the service status and config required for the restart process. I thought about using a map of created `Services` but it is not as clean as leveraging the map of service registrations. Added some PR comments to help with the review. Follow-up work in subsequent PRs: - Update gateway to manage the port forwarder connection during stop and start operations and enable support for k8s. - Update documentation. ## Is this change user facing? YES ## References (if applicable): #673
- Loading branch information
1 parent
69043bf
commit 10b6b91
Showing
50 changed files
with
2,328 additions
and
753 deletions.
There are no files selected for viewing
737 changes: 368 additions & 369 deletions
737
api/golang/core/kurtosis_core_rpc_api_bindings/api_container_service.pb.go
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 15 additions & 15 deletions
30
api/golang/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.