Skip to content

Commit

Permalink
Prepare for release of v4.0.0.
Browse files Browse the repository at this point in the history
Closes #10
  • Loading branch information
headcr4sh committed Aug 12, 2024
1 parent bbc11db commit 88fbe25
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:
jobs:
create_github_release:
name: Create Github Release
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Determine Version
id: determine_version
shell: bash
Expand Down
23 changes: 17 additions & 6 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,27 @@ on:
jobs:
validate:
name: Validate Terraform Module
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix:
tf_version:
- terraform:1.7
- terraform:latest
- opentofu:latest
container:
image: docker.io/hashicorp/terraform:0.13.2
image: ${{ matrix.tf_version }}
env:
CONTAINER_IMAGE: ${{ startsWith(matrix.tf_version, 'terraform') && format('{{{0}/{1}', 'docker.io/hashicorp/', matrix.tf_version) || format('{{{0}/{1}', ' ghcr.io/opentofu/', matrix.tf_version) }}
TF_EXE: ${{ startsWith(matrix.tf_version, 'terraform') && 'terraform' || 'tofu' }}
steps:
- name: git checkout
uses: actions/checkout@v2
- name: Initialize Terraform
run: terraform init -backend=false
uses: actions/checkout@v4
- name: Initialize ${{ matrix.tf_version }}
run: |
"${TF_EXE}" init -backend=false
- name: Validate Terraform Module Syntax
run: terraform validate
run: |
"${TF_EXE}" validate
#security_scanner:
# name: Run tfsec Security Scanner
# runs-on: ubuntu-20.04
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.terraform/
/.terraform.lock.hcl
*.tfstate*
*.auto.tfvars
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"recommendations": [
"davidanson.vscode-markdownlint",
"editorconfig.editorconfig",
"mauve.terraform"

"hashicorp.terraform"
]
}
29 changes: 25 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,31 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.0.0] - 2024-08-12

The source code of the module has been transferred to a new Github organization.

This is the first release that requires at least Terraform 1.7.0.

### Fixed

- Block types within pod template spec `limits` and `requests` have been converted to
arguments, which fixes errors with current versions of the Kubernetes provider plugin.
([#10](https://github.com/qvest-digital/terraform-kubernetes-aws-node-termination-handler/issues/10))

### Changed

- Github organization hosting this module has been changed to [`qvest-digital`](https://github.com/qvest-digital).
- Terraform 1.7.0 or higher is required to use this module.

### Updated

- Default version of the aws-node-termination-handler has been set to v1.22.1.

## [3.0.0] - 2020-10-23

This is the first release that requires at least Terraform 0.13.0.
The latest compatibiliy releases in the 0.12 series (0.12.29 as this release is being made)
The latest compatibility releases in the 0.12 series (0.12.29 as this release is being made)
might work, but it is no longer officially supported by the module's maintainers.

### Changed
Expand All @@ -17,7 +38,7 @@ might work, but it is no longer officially supported by the module's maintainers

### Added

- Webhook configuration options can be specified as input variables. ([#6](https://github.com/iplabs/terraform-kubernetes-aws-node-termination-handler/issues/6))
- Webhook configuration options can be specified as input variables. ([#6](https://github.com/qvest-digital/terraform-kubernetes-aws-node-termination-handler/issues/6))

### Updated

Expand All @@ -30,7 +51,7 @@ Thanks for the fix, [Nigel](https://github.com/nigelellis)!
### Fixed

- A bug in the ClusterRoleBinding where the name of the service account and
it's namespace got mixed up, was corrected. ([#5](https://github.com/iplabs/terraform-kubernetes-aws-node-termination-handler/issues/5))
it's namespace got mixed up, was corrected. ([#5](https://github.com/qvest-digital/terraform-kubernetes-aws-node-termination-handler/issues/5))

## [2.1.0] - 2020-09-08

Expand All @@ -45,7 +66,7 @@ Thanks for the fix, [Nigel](https://github.com/nigelellis)!

## Fixed

- Specify `host_post` to avoid perpetual diffs. ([#3](https://github.com/iplabs/terraform-kubernetes-aws-node-termination-handler/issues/3))
- Specify `host_post` to avoid perpetual diffs. ([#3](https://github.com/qvest-digital/terraform-kubernetes-aws-node-termination-handler/issues/3))

## [2.0.0] - 2020-07-15

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ snippet might be used.

```hcl
module "aws_node_termination_handler" {
source = "iplabs/aws-node-termination-handler/kubernetes"
version = "2.1.1"
source = "qvest-digital/aws-node-termination-handler/kubernetes"
version = "4.0.0"
}
```
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,11 @@ resource "kubernetes_daemonset" "this" {
protocol = "TCP"
}
resources {
limits {
limits = {
cpu = "100m"
memory = "128Mi"
}
requests {
requests = {
cpu = "50m"
memory = "64Mi"
}
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variable "node_termination_handler_version" {
description = "The version to use. See https://github.com/aws/aws-node-termination-handler/releases for available versions"
type = string
default = "1.9.0"
default = "1.22.1"
}

variable "ignore_daemon_sets" {
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.12.29"
required_version = ">= 1.7.0"
required_providers {
kubernetes = {
source = "hashicorp/kubernetes"
Expand Down

0 comments on commit 88fbe25

Please sign in to comment.