fix(compute-mig): add correct type optionality for metrics in autosca… (#1668)
* fix(compute-mig): add correct type optionality for metrics in autoscaler_config * feat(compute-mig): regenerate readme via tfdoc * fix(compute-mig): linting * fix(compute-mig): attempt #2 at fixing linting error * fix(compute-mig): tfdoc --no-files
This commit is contained in:
parent
f225b60b0e
commit
b512650ad2
|
@ -389,7 +389,6 @@ module "nginx-mig" {
|
||||||
# tftest modules=2 resources=3 inventory=stateful.yaml
|
# tftest modules=2 resources=3 inventory=stateful.yaml
|
||||||
```
|
```
|
||||||
<!-- BEGIN TFDOC -->
|
<!-- BEGIN TFDOC -->
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
|
|
||||||
| name | description | type | required | default |
|
| name | description | type | required | default |
|
||||||
|
@ -400,7 +399,7 @@ module "nginx-mig" {
|
||||||
| [project_id](variables.tf#L198) | Project id. | <code>string</code> | ✓ | |
|
| [project_id](variables.tf#L198) | Project id. | <code>string</code> | ✓ | |
|
||||||
| [all_instances_config](variables.tf#L17) | Metadata and labels set to all instances in the group. | <code title="object({ labels = optional(map(string)) metadata = optional(map(string)) })">object({…})</code> | | <code>null</code> |
|
| [all_instances_config](variables.tf#L17) | Metadata and labels set to all instances in the group. | <code title="object({ labels = optional(map(string)) metadata = optional(map(string)) })">object({…})</code> | | <code>null</code> |
|
||||||
| [auto_healing_policies](variables.tf#L26) | Auto-healing policies for this group. | <code title="object({ health_check = optional(string) initial_delay_sec = number })">object({…})</code> | | <code>null</code> |
|
| [auto_healing_policies](variables.tf#L26) | Auto-healing policies for this group. | <code title="object({ health_check = optional(string) initial_delay_sec = number })">object({…})</code> | | <code>null</code> |
|
||||||
| [autoscaler_config](variables.tf#L35) | Optional autoscaler configuration. | <code title="object({ max_replicas = number min_replicas = number cooldown_period = optional(number) mode = optional(string) # OFF, ONLY_UP, ON scaling_control = optional(object({ down = optional(object({ max_replicas_fixed = optional(number) max_replicas_percent = optional(number) time_window_sec = optional(number) })) in = optional(object({ max_replicas_fixed = optional(number) max_replicas_percent = optional(number) time_window_sec = optional(number) })) }), {}) scaling_signals = optional(object({ cpu_utilization = optional(object({ target = number optimize_availability = optional(bool) })) load_balancing_utilization = optional(object({ target = number })) metrics = optional(list(object({ name = string type = string # GAUGE, DELTA_PER_SECOND, DELTA_PER_MINUTE target_value = number single_instance_assignment = optional(number) time_series_filter = optional(string) }))) schedules = optional(list(object({ duration_sec = number name = string min_required_replicas = number cron_schedule = string description = optional(bool) timezone = optional(string) disabled = optional(bool) }))) }), {}) })">object({…})</code> | | <code>null</code> |
|
| [autoscaler_config](variables.tf#L35) | Optional autoscaler configuration. | <code title="object({ max_replicas = number min_replicas = number cooldown_period = optional(number) mode = optional(string) # OFF, ONLY_UP, ON scaling_control = optional(object({ down = optional(object({ max_replicas_fixed = optional(number) max_replicas_percent = optional(number) time_window_sec = optional(number) })) in = optional(object({ max_replicas_fixed = optional(number) max_replicas_percent = optional(number) time_window_sec = optional(number) })) }), {}) scaling_signals = optional(object({ cpu_utilization = optional(object({ target = number optimize_availability = optional(bool) })) load_balancing_utilization = optional(object({ target = number })) metrics = optional(list(object({ name = string type = optional(string) # GAUGE, DELTA_PER_SECOND, DELTA_PER_MINUTE target_value = optional(number) single_instance_assignment = optional(number) time_series_filter = optional(string) }))) schedules = optional(list(object({ duration_sec = number name = string min_required_replicas = number cron_schedule = string description = optional(bool) timezone = optional(string) disabled = optional(bool) }))) }), {}) })">object({…})</code> | | <code>null</code> |
|
||||||
| [default_version_name](variables.tf#L83) | Name used for the default version. | <code>string</code> | | <code>"default"</code> |
|
| [default_version_name](variables.tf#L83) | Name used for the default version. | <code>string</code> | | <code>"default"</code> |
|
||||||
| [description](variables.tf#L89) | Optional description used for all resources managed by this module. | <code>string</code> | | <code>"Terraform managed."</code> |
|
| [description](variables.tf#L89) | Optional description used for all resources managed by this module. | <code>string</code> | | <code>"Terraform managed."</code> |
|
||||||
| [distribution_policy](variables.tf#L95) | DIstribution policy for regional MIG. | <code title="object({ target_shape = optional(string) zones = optional(list(string)) })">object({…})</code> | | <code>null</code> |
|
| [distribution_policy](variables.tf#L95) | DIstribution policy for regional MIG. | <code title="object({ target_shape = optional(string) zones = optional(list(string)) })">object({…})</code> | | <code>null</code> |
|
||||||
|
@ -422,5 +421,4 @@ module "nginx-mig" {
|
||||||
| [group_manager](outputs.tf#L26) | Instance group resource. | |
|
| [group_manager](outputs.tf#L26) | Instance group resource. | |
|
||||||
| [health_check](outputs.tf#L35) | Auto-created health-check resource. | |
|
| [health_check](outputs.tf#L35) | Auto-created health-check resource. | |
|
||||||
| [id](outputs.tf#L44) | Fully qualified group manager id. | |
|
| [id](outputs.tf#L44) | Fully qualified group manager id. | |
|
||||||
|
|
||||||
<!-- END TFDOC -->
|
<!-- END TFDOC -->
|
||||||
|
|
|
@ -61,8 +61,8 @@ variable "autoscaler_config" {
|
||||||
}))
|
}))
|
||||||
metrics = optional(list(object({
|
metrics = optional(list(object({
|
||||||
name = string
|
name = string
|
||||||
type = string # GAUGE, DELTA_PER_SECOND, DELTA_PER_MINUTE
|
type = optional(string) # GAUGE, DELTA_PER_SECOND, DELTA_PER_MINUTE
|
||||||
target_value = number
|
target_value = optional(number)
|
||||||
single_instance_assignment = optional(number)
|
single_instance_assignment = optional(number)
|
||||||
time_series_filter = optional(string)
|
time_series_filter = optional(string)
|
||||||
})))
|
})))
|
||||||
|
|
Loading…
Reference in New Issue