Skip to content

Commit

Permalink
.Values.probeTimeoutSeconds added as health_check.timeoutSeconds
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciekLeks committed Dec 25, 2023
1 parent 02d2268 commit 639c533
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ Full contributing guidelines are covered [here](CONTRIBUTING.md).
| <a name="input_docker_fs_group"></a> [docker\_fs\_group](#input\_docker\_fs\_group) | The fsGroup to use for docker. This is added to security context when mount\_docker\_socket is enabled | `number` | `412` | no |
| <a name="input_envs"></a> [envs](#input\_envs) | Environment variable to be set for either runner or job or both. | <pre>list(object({<br> name = string<br> value = string<br> job = optional(bool)<br> runner = optional(bool)<br> }))</pre> | `[]` | no |
| <a name="input_gitlab_url"></a> [gitlab\_url](#input\_gitlab\_url) | The GitLab Server URL (with protocol) that want to register the runner against | `string` | `"https://gitlab.com/"` | no |
| <a name="input_health_check"></a> [health\_check](#input\_health\_check) | Health check options for the runner to check it's health. Supports only timeoutSeconds. | <pre>object({<br> timeout_seconds : optional(number, 3) #maps to .Values.probeTimeoutSeconds :/<br> })</pre> | `{}` | no |
| <a name="input_helper_job_container_image"></a> [helper\_job\_container\_image](#input\_helper\_job\_container\_image) | Helper container image. | `string` | `null` | no |
| <a name="input_host_aliases"></a> [host\_aliases](#input\_host\_aliases) | List of hosts and IPs that will be injected into the pod's hosts file. | <pre>list(object({<br> ip : string<br> hostnames : list(string)<br> }))</pre> | `[]` | no |
| <a name="input_hpa"></a> [hpa](#input\_hpa) | Horizontal Pod Autoscaling with API limited to metrics specification only (api/version: autoscaling/v2). | <pre>object({<br> min_replicas : number<br> max_replicas : number<br> metrics : list(object({<br> type : string<br> pods : object({<br> metric : object({<br> name : string<br> })<br> target : object({<br> type : string<br> average_value : optional(string)<br> average_utilization : optional(number)<br> value : optional(string)<br> })<br> })<br> }))<br> })</pre> | `null` | no |
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ resource "helm_release" "gitlab_runner" {
checkInterval = var.check_interval
logLevel = var.log_level

probeTimeoutSeconds = var.health_check.timeout_seconds

rbac = local.rbac

metrics = local.metrics
Expand Down
8 changes: 8 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -821,3 +821,11 @@ variable "poll" {
})
default = {}
}

variable "health_check" {
description = "Health check options for the runner to check it's health. Supports only timeoutSeconds."
type = object({
timeout_seconds : optional(number, 3) #maps to .Values.probeTimeoutSeconds :/
})
default = {}
}

0 comments on commit 639c533

Please sign in to comment.