Skip to content

Commit 323e198

Browse files
tmeijnkayman-mk
authored andcommitted
fix!: remove deprecated pull policy variable (#710)
## Description Removes the earlier deprecated `runners_pull_policy` variable. Since were making a Major release I thought this one was nice to catch. ## Migrations required YES. Replace the `runners_pull_policy` by `runners_pull_policies`.
1 parent 4c6e138 commit 323e198

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,6 @@ Made with [contributors-img](https://contrib.rocks).
616616
| <a name="input_runners_pre_clone_script"></a> [runners\_pre\_clone\_script](#input\_runners\_pre\_clone\_script) | Commands to be executed on the Runner before cloning the Git repository. this can be used to adjust the Git client configuration first, for example. | `string` | `"\"\""` | no |
617617
| <a name="input_runners_privileged"></a> [runners\_privileged](#input\_runners\_privileged) | Runners will run in privileged mode, will be used in the runner config.toml | `bool` | `true` | no |
618618
| <a name="input_runners_pull_policies"></a> [runners\_pull\_policies](#input\_runners\_pull\_policies) | pull policies for the runners, will be used in the runner config.toml, for Gitlab Runner >= 13.8, see https://docs.gitlab.com/runner/executors/docker.html#using-multiple-pull-policies | `list(string)` | <pre>[<br> "always"<br>]</pre> | no |
619-
| <a name="input_runners_pull_policy"></a> [runners\_pull\_policy](#input\_runners\_pull\_policy) | Deprecated! Use runners\_pull\_policies instead. pull\_policy for the runners, will be used in the runner config.toml | `string` | `""` | no |
620619
| <a name="input_runners_request_concurrency"></a> [runners\_request\_concurrency](#input\_runners\_request\_concurrency) | Limit number of concurrent requests for new jobs from GitLab (default 1). | `number` | `1` | no |
621620
| <a name="input_runners_request_spot_instance"></a> [runners\_request\_spot\_instance](#input\_runners\_request\_spot\_instance) | Whether or not to request spot instances via docker-machine | `bool` | `true` | no |
622621
| <a name="input_runners_root_size"></a> [runners\_root\_size](#input\_runners\_root\_size) | Runner instance root size in GB. | `number` | `16` | no |

locals.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ locals {
7878
}
7979
)
8080

81-
runners_pull_policies = var.runners_pull_policy != "" ? "[\"${var.runners_pull_policy}\"]" : "[\"${join("\",\"", var.runners_pull_policies)}\"]"
81+
runners_pull_policies = "[\"${join("\",\"", var.runners_pull_policies)}\"]"
8282

8383
/* determines if the docker machine executable adds the Name tag automatically (versions >= 0.16.2) */
8484
# make sure to skip pre-release stuff in the semver by ignoring everything after "-"

variables.tf

-6
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,6 @@ variable "runners_helper_image" {
248248
default = ""
249249
}
250250

251-
variable "runners_pull_policy" {
252-
description = "Deprecated! Use runners_pull_policies instead. pull_policy for the runners, will be used in the runner config.toml"
253-
type = string
254-
default = ""
255-
}
256-
257251
variable "runners_pull_policies" {
258252
description = "pull policies for the runners, will be used in the runner config.toml, for Gitlab Runner >= 13.8, see https://docs.gitlab.com/runner/executors/docker.html#using-multiple-pull-policies "
259253
type = list(string)

0 commit comments

Comments
 (0)