Skip to content

Commit a009aea

Browse files
authored
chore: Fix tf format and add Editor config (#11)
1 parent ed3b0be commit a009aea

File tree

10 files changed

+46
-12
lines changed

10 files changed

+46
-12
lines changed

.editorconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
# Override for Makefile
11+
[{Makefile,makefile,GNUmakefile}]
12+
indent_style = tab
13+
indent_size = 4
14+
15+
[Makefile.*]
16+
indent_style = tab
17+
indent_size = 4
18+
19+
[{*.yaml,*.yml,*.md}]
20+
indent_style = space
21+
indent_size = 2
22+
23+
[*.sh]
24+
indent_style = tab
25+
indent_size = 2
26+
27+
[*.{tf,tfvars,tpl,variant}]
28+
indent_style = space
29+
indent_size = 2
30+
31+
[*.json]
32+
insert_final_newline = false

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"extends": [
44
"config:base"
55
]
6-
}
6+
}

.github/settings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ repository:
55
description: This component creates a Helm release for actions-runner-controller on an EKS cluster
66
homepage: https://cloudposse.com/accelerate
77
topics: terraform, terraform-component
8+

README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ description: |-
253253
```
254254
255255
2. If using the Webhook Driven autoscaling (recommended), generate a random string to use as the Secret when creating
256-
the webhook in GitHub.
256+
the webhook in GitHub.
257257
258258
Generate the string using 1Password (no special characters, length 45) or by running
259259

docs/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/charts/actions-runner/templates/runnerdeployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ we explicitly convert to boolean based on the string value */}}
77
{{- $use_dockerconfig := eq (printf "%v" .Values.docker_config_json_enabled) "true" }}
88
{{- $use_dind := eq (printf "%v" .Values.dind_enabled) "true" }}
99
{{- /* Historically, the docker daemon was run in a sidecar.
10-
At some point, the option became available to use dockerdWithinRunnerContainer,
11-
and we now default to that. In fact, at this moment, the sidecar option is not configurable.
12-
We keep the logic here in case we need to revert to the sidecar option. */}}
10+
At some point, the option became available to use dockerdWithinRunnerContainer,
11+
and we now default to that. In fact, at this moment, the sidecar option is not configurable.
12+
We keep the logic here in case we need to revert to the sidecar option. */}}
1313
{{- $use_dind_in_runner := $use_dind }}
1414
{{- if $use_pvc }}
1515
---
@@ -74,7 +74,7 @@ data:
7474
{
7575
"metadata": {
7676
"annotations":
77-
{{- . | toJson | nindent 10 }}
77+
{{- . | toJson | nindent 10 }}
7878
}
7979
}
8080
EOF

src/context.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ variable "descriptor_formats" {
264264
Describe additional descriptors to be output in the `descriptors` output map.
265265
Map of maps. Keys are names of descriptors. Values are maps of the form
266266
`{
267-
format = string
268-
labels = list(string)
267+
format = string
268+
labels = list(string)
269269
}`
270270
(Type is `any` so the map values can later be enhanced to provide additional options.)
271271
`format` is a Terraform format string to be passed to the `format()` function.

src/outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ output "metadata" {
1111
You may not set both values at the same time, but the following runners have both values set:
1212
${join("\n ", [for k, v in var.runners : k if v.webhook_startup_timeout != null && v.max_duration != null])}
1313
14-
EOT
14+
EOT
1515
}
1616
precondition {
1717
condition = length([
@@ -22,7 +22,7 @@ output "metadata" {
2222
You may not set both values at the same time, but the following runners have both values set:
2323
${join("\n ", [for k, v in var.runners : k if v.storage != null && v.docker_storage != null])}
2424
25-
EOT
25+
EOT
2626
}
2727
}
2828

0 commit comments

Comments
 (0)