Skip to content

Commit

Permalink
feat: Add container outputs (#63)
Browse files Browse the repository at this point in the history
* Add container_vm output key, and update README.md Outputs block

* Updated README.md after running `make generate_docs`

Co-authored-by: Morgante Pell <[email protected]>
  • Loading branch information
AdamMAtWork and morgante authored May 5, 2020
1 parent 866ee3a commit baa02ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ Then perform the following commands on the root folder:
| Name | Description |
|------|-------------|
| container | The container definition provided |
| container\_vm | The complete container VM image object to use for the GCE instance |
| metadata\_key | The key to assign `metadata_value` to, so container information is attached to the instance |
| metadata\_value | The generated container configuration |
| restart\_policy | The restart policy provided |
| source\_image | The COS image to use for the GCE instance |
| vm\_container\_label | The COS version to deploy to the instance. To be used as the value for the `vm_container_label_key` label key |
| source\_image | The self_link to the COS image to use for the GCE instance. Equivalent to container_vm.self_link |
| vm\_container\_label | The COS version to deploy to the instance. To be used as the value for the `vm_container_label_key` label key. Equivalent to container_vm.name |
| vm\_container\_label\_key | The label key for the COS version deployed to the instance |
| volumes | The volume definition provided |

Expand Down
9 changes: 7 additions & 2 deletions output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ output "metadata_value" {
}

output "source_image" {
description = "The COS image to use for the GCE instance"
description = "The self_link to the COS image to use for the GCE instance. Equivalent to container_vm.self_link"
value = data.google_compute_image.coreos.self_link
}

Expand All @@ -35,10 +35,15 @@ output "vm_container_label_key" {
}

output "vm_container_label" {
description = "The COS version to deploy to the instance. To be used as the value for the `vm_container_label_key` label key"
description = "The COS version to deploy to the instance. To be used as the value for the `vm_container_label_key` label key. Equivalent to container_vm.name"
value = data.google_compute_image.coreos.name
}

output "container_vm" {
description = "The complete container VM image object to use for the GCE instance"
value = data.google_compute_image.coreos
}

output "container" {
description = "The container definition provided"
value = var.container
Expand Down

0 comments on commit baa02ef

Please sign in to comment.