diff --git a/modules/cron/README.md b/modules/cron/README.md index e18f9e4..016afe7 100644 --- a/modules/cron/README.md +++ b/modules/cron/README.md @@ -96,7 +96,7 @@ No requirements. | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [base\_image](#input\_base\_image) | The base image that will be used to build the container image. | `string` | `"cgr.dev/chainguard/static:latest-glibc"` | no | +| [base\_image](#input\_base\_image) | The base image that will be used to build the container image. | `string` | `null` | no | | [cpu](#input\_cpu) | The CPU limit for the job. | `string` | `"1000m"` | no | | [env](#input\_env) | A map of custom environment variables (e.g. key=value) | `map` | `{}` | no | | [exec](#input\_exec) | Execute job on modify. | `bool` | `false` | no | diff --git a/modules/cron/example/README.md b/modules/cron/example/README.md new file mode 100644 index 0000000..6857ab1 --- /dev/null +++ b/modules/cron/example/README.md @@ -0,0 +1,33 @@ + +## Requirements + +No requirements. + +## Providers + +| Name | Version | +|------|---------| +| [google](#provider\_google) | n/a | + +## Modules + +| Name | Source | Version | +|------|--------|---------| +| [cron](#module\_cron) | ../ | n/a | + +## Resources + +| Name | Type | +|------|------| +| [google_service_account.this](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/service_account) | resource | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [project\_id](#input\_project\_id) | The project that will host the cron job. | `string` | n/a | yes | + +## Outputs + +No outputs. + \ No newline at end of file diff --git a/modules/cron/variables.tf b/modules/cron/variables.tf index a31b02a..adc357a 100644 --- a/modules/cron/variables.tf +++ b/modules/cron/variables.tf @@ -18,7 +18,7 @@ variable "schedule" { variable "base_image" { type = string - default = "cgr.dev/chainguard/static:latest-glibc" + default = null description = "The base image that will be used to build the container image." } diff --git a/modules/dashboard/sections/github/README.md b/modules/dashboard/sections/github/README.md index d0a86b3..eca09c2 100644 --- a/modules/dashboard/sections/github/README.md +++ b/modules/dashboard/sections/github/README.md @@ -13,8 +13,8 @@ No providers. |------|--------|---------| | [collapsible](#module\_collapsible) | ../collapsible | n/a | | [limit](#module\_limit) | ../../widgets/xy | n/a | -| [remaining](#module\_remaining) | ../../widgets/xy | n/a | -| [reset](#module\_reset) | ../../widgets/xy | n/a | +| [time\_to\_reset](#module\_time\_to\_reset) | ../../widgets/xy | n/a | +| [used](#module\_used) | ../../widgets/xy | n/a | | [width](#module\_width) | ../width | n/a | ## Resources @@ -25,7 +25,6 @@ No resources. | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [cloudrun\_name](#input\_cloudrun\_name) | n/a | `string` | n/a | yes | | [collapsed](#input\_collapsed) | n/a | `bool` | `false` | no | | [filter](#input\_filter) | n/a | `list(string)` | n/a | yes | | [title](#input\_title) | n/a | `string` | n/a | yes | diff --git a/modules/dashboard/sections/resources/README.md b/modules/dashboard/sections/resources/README.md index 21c7fd6..1c5d72b 100644 --- a/modules/dashboard/sections/resources/README.md +++ b/modules/dashboard/sections/resources/README.md @@ -36,7 +36,7 @@ No requirements. | [cloudrun\_name](#input\_cloudrun\_name) | n/a | `string` | n/a | yes | | [collapsed](#input\_collapsed) | n/a | `bool` | `false` | no | | [filter](#input\_filter) | n/a | `list(string)` | n/a | yes | -| [notification\_channels](#input\_notification\_channels) | n/a | `list(string)` | `[]` | no | +| [notification\_channels](#input\_notification\_channels) | n/a | `list(string)` | n/a | yes | | [title](#input\_title) | n/a | `string` | n/a | yes | ## Outputs diff --git a/modules/dashboard/sections/subscription/README.md b/modules/dashboard/sections/subscription/README.md index 1d90b72..a9adf08 100644 --- a/modules/dashboard/sections/subscription/README.md +++ b/modules/dashboard/sections/subscription/README.md @@ -32,7 +32,7 @@ No requirements. |------|-------------|------|---------|:--------:| | [alert\_threshold](#input\_alert\_threshold) | n/a | `number` | `50000` | no | | [collapsed](#input\_collapsed) | n/a | `bool` | `false` | no | -| [notification\_channels](#input\_notification\_channels) | n/a | `list(string)` | `[]` | no | +| [notification\_channels](#input\_notification\_channels) | n/a | `list(string)` | n/a | yes | | [subscription\_prefix](#input\_subscription\_prefix) | n/a | `string` | n/a | yes | | [title](#input\_title) | n/a | `string` | n/a | yes | diff --git a/modules/regional-go-service/README.md b/modules/regional-go-service/README.md index eb76622..cd0b9f0 100644 --- a/modules/regional-go-service/README.md +++ b/modules/regional-go-service/README.md @@ -94,7 +94,7 @@ No requirements. | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [containers](#input\_containers) | The containers to run in the service. Each container will be run in each region. |
map(object({
source = object({
base_image = optional(string, "cgr.dev/chainguard/static:latest-glibc")
working_dir = string
importpath = string
})
args = optional(list(string), [])
ports = optional(list(object({
name = optional(string, "http1")
container_port = number
})), [])
resources = optional(
object(
{
limits = optional(object(
{
cpu = string
memory = string
}
), null)
cpu_idle = optional(bool, true)
startup_cpu_boost = optional(bool, false)
}
),
{
cpu_idle = true
}
)
env = optional(list(object({
name = string
value = optional(string)
value_source = optional(object({
secret_key_ref = object({
secret = string
version = string
})
}), null)
})), [])
regional-env = optional(list(object({
name = string
value = map(string)
})), [])
volume_mounts = optional(list(object({
name = string
mount_path = string
})), [])
}))
| n/a | yes | +| [containers](#input\_containers) | The containers to run in the service. Each container will be run in each region. |
map(object({
source = object({
base_image = optional(string)
working_dir = string
importpath = string
})
args = optional(list(string), [])
ports = optional(list(object({
name = optional(string, "http1")
container_port = number
})), [])
resources = optional(
object(
{
limits = optional(object(
{
cpu = string
memory = string
}
), null)
cpu_idle = optional(bool, true)
startup_cpu_boost = optional(bool, false)
}
),
{
cpu_idle = true
}
)
env = optional(list(object({
name = string
value = optional(string)
value_source = optional(object({
secret_key_ref = object({
secret = string
version = string
})
}), null)
})), [])
regional-env = optional(list(object({
name = string
value = map(string)
})), [])
volume_mounts = optional(list(object({
name = string
mount_path = string
})), [])
}))
| n/a | yes | | [egress](#input\_egress) | Which type of egress traffic to send through the VPC.

- ALL\_TRAFFIC sends all traffic through regional VPC network
- PRIVATE\_RANGES\_ONLY sends only traffic to private IP addresses through regional VPC network | `string` | `"ALL_TRAFFIC"` | no | | [execution\_environment](#input\_execution\_environment) | The execution environment for the service | `string` | `"EXECUTION_ENVIRONMENT_GEN1"` | no | | [ingress](#input\_ingress) | Which type of ingress traffic to accept for the service.

- INGRESS\_TRAFFIC\_ALL accepts all traffic, enabling the public .run.app URL for the service
- INGRESS\_TRAFFIC\_INTERNAL\_LOAD\_BALANCER accepts traffic only from a load balancer
- INGRESS\_TRAFFIC\_INTERNAL\_ONLY accepts internal traffic only | `string` | `"INGRESS_TRAFFIC_INTERNAL_ONLY"` | no | diff --git a/modules/regional-go-service/variables.tf b/modules/regional-go-service/variables.tf index 813e312..8922091 100644 --- a/modules/regional-go-service/variables.tf +++ b/modules/regional-go-service/variables.tf @@ -46,7 +46,7 @@ variable "containers" { description = "The containers to run in the service. Each container will be run in each region." type = map(object({ source = object({ - base_image = optional(string, "cgr.dev/chainguard/static:latest-glibc") + base_image = optional(string) working_dir = string importpath = string })