Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Start and Stop service Starlark instructions for K8S #756

Merged
merged 18 commits into from
Jun 23, 2023

Conversation

laurentluce
Copy link
Contributor

@laurentluce laurentluce commented Jun 22, 2023

Description:

Most of the work for the K8S backend was done as part of #694. In addition, the port forwarder reconnect feature reduced the amount of work we had to finish. Here are the changes made in this PR:

  • We keep the K8S service untouched when we stop the user service so it can be restarted easily by creating a new pod. This change does not impact the remove service expected behavior.
  • We don't try to create a port forwarder connection if the service is stopped.

A service stopped here is a k8s service with no pod running. I think it is time to return the service status (registered, started, stopped) as part of the GetServices response so we can simplify the second item above. I will do that in a follow-up PR.

Is this change user facing?

YES

References (if applicable):

Closes #673
#694
#736

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 22, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d9e01b9
Status: ✅  Deploy successful!
Preview URL: https://107217be.kurtosis-docs.pages.dev
Branch Preview URL: https://laurent-start-stop-service-k.kurtosis-docs.pages.dev

View logs

@laurentluce laurentluce requested a review from gbouv June 22, 2023 13:22
Copy link
Contributor

@gbouv gbouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay!

@laurentluce laurentluce merged commit fb3e922 into main Jun 23, 2023
@laurentluce laurentluce deleted the laurent/start_stop_service_k8s branch June 23, 2023 21:31
victorcolombo pushed a commit that referenced this pull request Jun 26, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.80.1](0.80.0...0.80.1)
(2023-06-26)


### Features

* Add Rust protobuf bindings
([#765](#765))
([0e47003](0e47003))
* added wait to run_sh task.
([#750](#750))
([8c2b697](8c2b697))
* Implemented rename enclave method in container engine lib
([#755](#755))
([f1570f7](f1570f7))
* Persist enclave plan in the Starlark executor memory
([#757](#757))
([2c3d74e](2c3d74e))
* Start and Stop service Starlark instructions for K8S
([#756](#756))
([fb3e922](fb3e922))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: kurtosisbot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Services should be stoppable and restartable on Docker and K8S
2 participants