Skip to content

Commit 5044d09

Browse files
fix: variable description for var.bootstrap_additional_options (#144)
* fix: variable description for var.bootstrap_additional_options * chore: just ran - make init make github/init make readme
1 parent 3785292 commit 5044d09

File tree

6 files changed

+29
-7
lines changed

6 files changed

+29
-7
lines changed

.github/mergify.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ pull_request_rules:
44
- name: "approve automated PRs that have passed checks"
55
conditions:
66
- "author~=^(cloudpossebot|renovate\\[bot\\])$"
7-
- "base=master"
87
- "-closed"
98
- "head~=^(auto-update|renovate)/.*"
109
- "check-success=test/bats"
1110
- "check-success=test/readme"
1211
- "check-success=test/terratest"
1312
- "check-success=validate-codeowners"
13+
- or:
14+
- "base=master"
15+
- "base=main"
16+
- "base~=^release/v\\d{1,2}$"
17+
1418
actions:
1519
review:
1620
type: "APPROVE"
@@ -20,7 +24,6 @@ pull_request_rules:
2024
- name: "merge automated PRs when approved and tests pass"
2125
conditions:
2226
- "author~=^(cloudpossebot|renovate\\[bot\\])$"
23-
- "base=master"
2427
- "-closed"
2528
- "head~=^(auto-update|renovate)/.*"
2629
- "check-success=test/bats"
@@ -30,6 +33,11 @@ pull_request_rules:
3033
- "#approved-reviews-by>=1"
3134
- "#changes-requested-reviews-by=0"
3235
- "#commented-reviews-by=0"
36+
- or:
37+
- "base=master"
38+
- "base=main"
39+
- "base~=^release/v\\d{1,2}$"
40+
3341
actions:
3442
merge:
3543
method: "squash"
@@ -50,7 +58,10 @@ pull_request_rules:
5058

5159
- name: "remove outdated reviews"
5260
conditions:
53-
- "base=master"
61+
- or:
62+
- "base=master"
63+
- "base=main"
64+
- "base~=^release/v\\d{1,2}$"
5465
actions:
5566
dismiss_reviews:
5667
changes_requested: true

.github/renovate.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"config:base",
44
":preserveSemverRanges"
55
],
6+
"baseBranches": ["main", "master", "/^release\\/v\\d{1,2}$/"],
67
"labels": ["auto-update"],
78
"dependencyDashboardAutoclose": true,
89
"enabledManagers": ["terraform"],

.github/workflows/auto-context.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313

14+
- name: Find default branch name
15+
id: defaultBranch
16+
shell: bash
17+
env:
18+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
19+
run: |
20+
default_branch=$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name)
21+
echo "defaultBranch=${default_branch}" >> "$GITHUB_OUTPUT"
22+
printf "defaultBranchRef.name=%s\n" "${default_branch}"
23+
1424
- name: Update context.tf
1525
shell: bash
1626
id: update
@@ -50,7 +60,7 @@ jobs:
5060
To support all the features of the `context` interface.
5161
5262
branch: auto-update/context.tf
53-
base: master
63+
base: ${{ steps.defaultBranch.outputs.defaultBranch }}
5464
delete-branch: true
5565
labels: |
5666
auto-update

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ https://docs.aws.amazon.com/eks/latest/userguide/windows-support.html
338338
| <a name="input_attributes"></a> [attributes](#input\_attributes) | ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`,<br>in the order they appear in the list. New attributes are appended to the<br>end of the list. The elements of the list are joined by the `delimiter`<br>and treated as a single ID element. | `list(string)` | `[]` | no |
339339
| <a name="input_before_cluster_joining_userdata"></a> [before\_cluster\_joining\_userdata](#input\_before\_cluster\_joining\_userdata) | Additional `bash` commands to execute on each worker node before joining the EKS cluster (before executing the `bootstrap.sh` script). For more info, see https://kubedex.com/90-days-of-aws-eks-in-production | `list(string)` | `[]` | no |
340340
| <a name="input_block_device_mappings"></a> [block\_device\_mappings](#input\_block\_device\_mappings) | List of block device mappings for the launch template.<br>Each list element is an object with a `device_name` key and<br>any keys supported by the `ebs` block of `launch_template`. | `list(any)` | <pre>[<br> {<br> "delete_on_termination": true,<br> "device_name": "/dev/xvda",<br> "encrypted": true,<br> "volume_size": 20,<br> "volume_type": "gp2"<br> }<br>]</pre> | no |
341-
| <a name="input_bootstrap_additional_options"></a> [bootstrap\_additional\_options](#input\_bootstrap\_additional\_options) | Additional options to bootstrap.sh. DO NOT include `--kubelet-additional-args`, use `kubelet_additional_args` var instead. | `list(string)` | `[]` | no |
341+
| <a name="input_bootstrap_additional_options"></a> [bootstrap\_additional\_options](#input\_bootstrap\_additional\_options) | Additional options to bootstrap.sh. DO NOT include `--kubelet-additional-args`, use `kubelet_additional_options` var instead. | `list(string)` | `[]` | no |
342342
| <a name="input_capacity_type"></a> [capacity\_type](#input\_capacity\_type) | Type of capacity associated with the EKS Node Group. Valid values: "ON\_DEMAND", "SPOT", or `null`.<br>Terraform will only perform drift detection if a configuration value is provided. | `string` | `null` | no |
343343
| <a name="input_cluster_autoscaler_enabled"></a> [cluster\_autoscaler\_enabled](#input\_cluster\_autoscaler\_enabled) | Set true to label the node group so that the [Kubernetes Cluster Autoscaler](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/README.md#auto-discovery-setup) will discover and autoscale it | `bool` | `false` | no |
344344
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | The name of the EKS cluster | `string` | n/a | yes |

docs/terraform.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
| <a name="input_attributes"></a> [attributes](#input\_attributes) | ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`,<br>in the order they appear in the list. New attributes are appended to the<br>end of the list. The elements of the list are joined by the `delimiter`<br>and treated as a single ID element. | `list(string)` | `[]` | no |
5858
| <a name="input_before_cluster_joining_userdata"></a> [before\_cluster\_joining\_userdata](#input\_before\_cluster\_joining\_userdata) | Additional `bash` commands to execute on each worker node before joining the EKS cluster (before executing the `bootstrap.sh` script). For more info, see https://kubedex.com/90-days-of-aws-eks-in-production | `list(string)` | `[]` | no |
5959
| <a name="input_block_device_mappings"></a> [block\_device\_mappings](#input\_block\_device\_mappings) | List of block device mappings for the launch template.<br>Each list element is an object with a `device_name` key and<br>any keys supported by the `ebs` block of `launch_template`. | `list(any)` | <pre>[<br> {<br> "delete_on_termination": true,<br> "device_name": "/dev/xvda",<br> "encrypted": true,<br> "volume_size": 20,<br> "volume_type": "gp2"<br> }<br>]</pre> | no |
60-
| <a name="input_bootstrap_additional_options"></a> [bootstrap\_additional\_options](#input\_bootstrap\_additional\_options) | Additional options to bootstrap.sh. DO NOT include `--kubelet-additional-args`, use `kubelet_additional_args` var instead. | `list(string)` | `[]` | no |
60+
| <a name="input_bootstrap_additional_options"></a> [bootstrap\_additional\_options](#input\_bootstrap\_additional\_options) | Additional options to bootstrap.sh. DO NOT include `--kubelet-additional-args`, use `kubelet_additional_options` var instead. | `list(string)` | `[]` | no |
6161
| <a name="input_capacity_type"></a> [capacity\_type](#input\_capacity\_type) | Type of capacity associated with the EKS Node Group. Valid values: "ON\_DEMAND", "SPOT", or `null`.<br>Terraform will only perform drift detection if a configuration value is provided. | `string` | `null` | no |
6262
| <a name="input_cluster_autoscaler_enabled"></a> [cluster\_autoscaler\_enabled](#input\_cluster\_autoscaler\_enabled) | Set true to label the node group so that the [Kubernetes Cluster Autoscaler](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/README.md#auto-discovery-setup) will discover and autoscale it | `bool` | `false` | no |
6363
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | The name of the EKS cluster | `string` | n/a | yes |

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ variable "after_cluster_joining_userdata" {
337337
variable "bootstrap_additional_options" {
338338
type = list(string)
339339
default = []
340-
description = "Additional options to bootstrap.sh. DO NOT include `--kubelet-additional-args`, use `kubelet_additional_args` var instead."
340+
description = "Additional options to bootstrap.sh. DO NOT include `--kubelet-additional-args`, use `kubelet_additional_options` var instead."
341341
validation {
342342
condition = (
343343
length(var.bootstrap_additional_options) < 2

0 commit comments

Comments
 (0)