mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Use immutable names for volumes in example templates (#4954)
* fix: Use immutable names for volumes in example templates This contributes towards #3000, #3386 Related #3409 * Add lifecycle and labels
This commit is contained in:
+4
-1
@@ -184,7 +184,10 @@ data "coder_workspace" "me" {
|
||||
resource "docker_volume" "home_volume" {
|
||||
# persistent resource (remains a workspace is stopped)
|
||||
count = 1
|
||||
name = "coder-${data.coder_workspace.me.owner}-${data.coder_workspace.me.name}-root"
|
||||
name = "coder-${data.coder_workspace.me.id}-home"
|
||||
lifecycle {
|
||||
ignore_changes = all
|
||||
}
|
||||
}
|
||||
|
||||
resource "docker_container" "workspace" {
|
||||
|
||||
Reference in New Issue
Block a user