Skip to content

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

Closed as not planned
Closed as not planned
@ammario

Description

@ammario

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThis issue is like stale bread.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions