Skip to content

Commit

Permalink
feat: add env block to cloud workstations resource. (GoogleCloudPlatf…
Browse files Browse the repository at this point in the history
  • Loading branch information
ch3ck authored Sep 12, 2023
1 parent 99358dc commit 1c54afe
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mmv1/products/workstations/Workstation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ properties:
- !ruby/object:Api::Type::KeyValuePairs
name: 'annotations'
description: 'Client-specified annotations. This is distinct from labels.'
- !ruby/object:Api::Type::KeyValuePairs
name: 'env'
description: |
'Client-specified environment variables passed to the workstation container's entrypoint.'
- !ruby/object:Api::Type::Time
name: 'createTime'
description: |
Expand Down
4 changes: 4 additions & 0 deletions mmv1/templates/terraform/examples/workstation_basic.tf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ resource "google_workstations_workstation" "<%= ctx[:primary_resource_id] %>" {
"label" = "key"
}

env = {
name = "foo"
}

annotations = {
label-one = "value-one"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ resource "google_workstations_workstation" "default" {
labels = {
foo = "bar"
}

env = {
name = "bar"
}
}
`, context)
}
Expand Down Expand Up @@ -137,6 +141,10 @@ resource "google_workstations_workstation" "default" {
labels = {
foo = "bar"
}

env = {
name = "test"
}
}
`, context)
}
Expand Down

0 comments on commit 1c54afe

Please sign in to comment.