Skip to content

Commit 6a88d33

Browse files
authored
update readme and pre-commit plugins version (#8)
* update recommit plugins version * update var description
1 parent 01dbfbd commit 6a88d33

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v5.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -10,11 +10,11 @@ repos:
1010
- id: detect-private-key
1111
- id: no-commit-to-branch
1212
- repo: https://github.com/gitleaks/gitleaks
13-
rev: v8.18.4
13+
rev: v8.26.0
1414
hooks:
1515
- id: gitleaks
1616
- repo: https://github.com/antonbabenko/pre-commit-terraform
17-
rev: v1.92.0
17+
rev: v1.99.0
1818
hooks:
1919
- id: terraform_fmt
2020
- id: terraform_validate
@@ -24,12 +24,12 @@ repos:
2424
args:
2525
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl --fix
2626
- repo: https://github.com/bridgecrewio/checkov.git
27-
rev: "3.2.183"
27+
rev: "3.2.426"
2828
hooks:
2929
- id: checkov
3030
args: ["--quiet", "--compact", "--framework", "terraform", "--download-external-modules", "false", "--skip-path", "examples"]
3131
- repo: https://github.com/terraform-docs/terraform-docs
32-
rev: v0.18.0
32+
rev: v0.20.0
3333
hooks:
3434
- id: terraform-docs-go
3535
args: ["."]

.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugin "aws" {
22
enabled = true
3-
version = "0.30.0"
3+
version = "0.39.0"
44
source = "github.com/terraform-linters/tflint-ruleset-aws"
55
}
66

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,20 @@ module "eks_managed_node_group" {
3232
| Name | Description | Type | Default | Required |
3333
|------|-------------|------|---------|:--------:|
3434
| ami_release_version | AMI version to use for EKS worker nodes. Leaving it to null will use latest available version | `string` | `null` | no |
35-
| ami_type | Type of AMI to be used for EKS worker node. Supported values: AL2_x86_64, AL2_ARM_64, AL2_x86_64_GPU(AMI with GPU support) | `string` | `"AL2_x86_64"` | no |
36-
| capacity_type | Type of purchase option to be used for EKS worker node. **Possible Values**: ON_DEMAND or SPOT | `string` | `"ON_DEMAND"` | no |
35+
| ami_type | Refer to [AWS doc](https://docs.aws.amazon.com/eks/latest/APIReference/API_Nodegroup.html#AmazonEKS-Type-Nodegroup-amiType) for supported AMI types | `string` | `"AL2023_x86_64_STANDARD"` | no |
36+
| capacity_type | Type of purchase option to be used for EKS worker node. **Possible Values**: `ON_DEMAND` or `SPOT` | `string` | `"ON_DEMAND"` | no |
3737
| cluster_name | Name of EKS cluster | `string` | n/a | yes |
3838
| create_ng_role | Whether to create new IAM role for EKS worker nodes | `bool` | `true` | no |
3939
| desired_size | Initial number of worker nodes to launch | `number` | `2` | no |
40-
| disk_size | Size of each EBS volume attached to EKS worker node | `number` | `20` | no |
40+
| disk_size | Size of each EBS volume attached to EKS worker node. **Note:** Not required when using `launch_template` variable | `number` | `null` | no |
41+
| enable_node_auto_repair | Whether to enable node auto repair for the node group | `bool` | `true` | no |
4142
| force_update_version | Forcefully perform version update for worker nodes if pod disruption prevents node draining | `bool` | `false` | no |
42-
| instance_types | List of type of instances to be used as EKS worker nodes | `list(string)` | ```[ "t3.medium" ]``` | no |
43+
| instance_types | List of type of instances to be used as EKS worker nodes. **Note:** Not required when using `launch_template` variable | `list(string)` | `null` | no |
4344
| labels | Key Value pair of Kubernetes labels to apply on worker nodes | `map(string)` | `{}` | no |
4445
| launch_template | A config block with launch template details ```{ id = ID of the EC2 Launch Template to use. **Note:** Either `id` or `name` is required name = Name of the EC2 Launch Template to use. **Note:** Either `id` or `name` is required version = EC2 Launch Template version to use for launching instances }``` | `map(any)` | `{}` | no |
4546
| max_size | Maximum number of worker nodes | `number` | `4` | no |
47+
| max_unavailable | Maximum number/percentage of nodes that can be unavailable during the node group update | `number` | `1` | no |
48+
| max_unavailable_type | Type of maximum unavailable nodes. **Valid values:** count or percentage | `string` | `"count"` | no |
4649
| min_size | Minimum number of worker nodes to maintain at any given point of time | `number` | `2` | no |
4750
| ng_name | Name of EKS Node Group. Default: {cluster_name}-ng | `string` | `""` | no |
4851
| ng_role_arn | ARN of IAM role to associate with EKS worker nodes. Leave it blank to create IAM role with required permissions | `string` | `""` | no |

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ variable "min_size" {
6060
variable "capacity_type" {
6161
type = string
6262
default = "ON_DEMAND"
63-
description = "Type of purchase option to be used for EKS worker node. **Possible Values**: ON_DEMAND or SPOT"
63+
description = "Type of purchase option to be used for EKS worker node. **Possible Values**: `ON_DEMAND` or `SPOT`"
6464
}
6565

6666
variable "instance_types" {

0 commit comments

Comments
 (0)