Skip to content

Indicate which resources are ephemeral in the CLI/UI #3596

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

Closed
ammario opened this issue Aug 19, 2022 · 4 comments
Closed

Indicate which resources are ephemeral in the CLI/UI #3596

ammario opened this issue Aug 19, 2022 · 4 comments
Labels
stale This issue is like stale bread.

Comments

@ammario
Copy link
Member

ammario commented Aug 19, 2022

At least one user has reported frustration that when their workspace restarted, all of their data went missing. While we could solve this with some explicit ephemeral flag, a more powerful approach is adding a description field to each resource via coder_metadata. For example:

resource "coder_metadata" "deployment" {
  count = data.coder_workspace.me.start_count
  resource_id = kubernetes_deployment.coder[0].id
  description = "⚠️ The pod filesystem deletes on shutdown"
  item {
    key = "name"
    value = kubernetes_deployment.coder[0].metadata[0].name
  }
}

cc @dwahler, @bpmct, and @BrunoQuaresma.

@bpmct
Copy link
Member

bpmct commented Aug 19, 2022

I like doing this via metadata!

@bpmct
Copy link
Member

bpmct commented Aug 19, 2022

We could also include a /etc/motd in images to share that any software installed is removed on restart.

@github-actions
Copy link

This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.

@github-actions github-actions bot added the stale This issue is like stale bread. label Oct 19, 2022
@bpmct bpmct changed the title All my workspace data disappeared on reboot Indicate which resources are ephemeral in the CLI/UI Oct 25, 2022
@github-actions github-actions bot removed the stale This issue is like stale bread. label Oct 28, 2022
@github-actions
Copy link

This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.

@github-actions github-actions bot added the stale This issue is like stale bread. label Dec 28, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This issue is like stale bread.
Projects
None yet
Development

No branches or pull requests

2 participants