Skip to content

Commit

Permalink
feat: expose cos_project variable (#91)
Browse files Browse the repository at this point in the history
* cos_project variable

* Generated docs
  • Loading branch information
josehidalg0 authored Sep 19, 2022
1 parent 1a9550a commit b32263d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Then perform the following commands on the root folder:
| container | A description of the container to deploy | `any` | <pre>{<br> "command": "ls",<br> "image": "gcr.io/google-containers/busybox"<br>}</pre> | no |
| cos\_image\_family | The COS image family to use (eg: stable, beta, or dev) | `string` | `"stable"` | no |
| cos\_image\_name | Name of a specific COS image to use instead of the latest cos family image | `string` | `null` | no |
| cos\_project | COS project where the image is located | `string` | `"cos-cloud"` | no |
| restart\_policy | The restart policy for a Docker container. Defaults to `OnFailure` | `string` | `"OnFailure"` | no |
| volumes | A set of Docker Volumes to configure | `any` | `[]` | no |

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ locals {

cos_image_name = var.cos_image_name
cos_image_family = var.cos_image_name == null ? "cos-${var.cos_image_family}" : null
cos_project = "cos-cloud"
cos_project = var.cos_project

spec = {
spec = {
Expand Down
7 changes: 7 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,10 @@ variable "cos_image_name" {
type = string
default = null
}

variable "cos_project" {
description = "COS project where the image is located"
type = string
default = "cos-cloud"
}

0 comments on commit b32263d

Please sign in to comment.