Skip to content

Commit b32263d

Browse files
authored
feat: expose cos_project variable (#91)
* cos_project variable * Generated docs
1 parent 1a9550a commit b32263d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Then perform the following commands on the root folder:
8484
| container | A description of the container to deploy | `any` | <pre>{<br> "command": "ls",<br> "image": "gcr.io/google-containers/busybox"<br>}</pre> | no |
8585
| cos\_image\_family | The COS image family to use (eg: stable, beta, or dev) | `string` | `"stable"` | no |
8686
| cos\_image\_name | Name of a specific COS image to use instead of the latest cos family image | `string` | `null` | no |
87+
| cos\_project | COS project where the image is located | `string` | `"cos-cloud"` | no |
8788
| restart\_policy | The restart policy for a Docker container. Defaults to `OnFailure` | `string` | `"OnFailure"` | no |
8889
| volumes | A set of Docker Volumes to configure | `any` | `[]` | no |
8990

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ locals {
2424

2525
cos_image_name = var.cos_image_name
2626
cos_image_family = var.cos_image_name == null ? "cos-${var.cos_image_family}" : null
27-
cos_project = "cos-cloud"
27+
cos_project = var.cos_project
2828

2929
spec = {
3030
spec = {

variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,10 @@ variable "cos_image_name" {
4848
type = string
4949
default = null
5050
}
51+
52+
variable "cos_project" {
53+
description = "COS project where the image is located"
54+
type = string
55+
default = "cos-cloud"
56+
}
57+

0 commit comments

Comments
 (0)