From 4b59cafe9f583fbc90b9eafb4576a44984073c76 Mon Sep 17 00:00:00 2001 From: Colin Wilson Date: Mon, 7 Feb 2022 03:05:43 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9A=A1=20update=20default=20chart=20vers?= =?UTF-8?q?ion=20to=2010.14.0=20=F0=9F=94=A5=20remove=20chart=20version=20?= =?UTF-8?q?from=20helm=5Fresource=20name=20key=20=F0=9F=93=84=20update=20r?= =?UTF-8?q?eadme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- chart.tf | 2 +- variables.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7138d0d..25043d0 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A Terraform module to provision [Traefik](https://traefik.io/traefik/) (v2.x) on | Name | Description | Type | Default | Required | |------|-------------|:----:|:-----:|:-----:| | namespace | Namespace to install traefik chart into (created if non-existent on target cluster) | string | `traefik` | no | -| traefik_chart_version | Version of Traefik chart to install | string | `10.9.1` | no | +| traefik_chart_version | Version of Traefik chart to install | string | `10.14.0` | no | | timeout_seconds | Helm chart deployment can sometimes take longer than the default 5 minutes. Set a custom timeout (secs) | number | `800` | no | | replica_count | Number of replica pods to create | number | `1` | no | | values_file | Name of the traefik helm chart values file to use | string | `values.yaml` | no | \ No newline at end of file diff --git a/chart.tf b/chart.tf index 6c93fb0..20db76b 100644 --- a/chart.tf +++ b/chart.tf @@ -2,7 +2,7 @@ resource "helm_release" "traefik" { namespace = var.namespace create_namespace = true - name = "traefik-v${replace(var.traefik_chart_version, ".", "-")}" + name = "traefik" repository = "https://helm.traefik.io/traefik" chart = "traefik" version = var.traefik_chart_version diff --git a/variables.tf b/variables.tf index 81c46cd..2fb8430 100644 --- a/variables.tf +++ b/variables.tf @@ -7,7 +7,7 @@ variable "namespace" { variable "traefik_chart_version" { description = "Version of Traefik chart to install" type = string - default = "10.9.1" # See https://artifacthub.io/packages/helm/traefik/traefik for latest version(s) + default = "10.14.0" # See https://artifacthub.io/packages/helm/traefik/traefik for latest version(s) } # Helm chart deployment can sometimes take longer than the default 5 minutes From d8bdab6d86aeefc95a28e49656edee62462b6b4a Mon Sep 17 00:00:00 2001 From: Colin Wilson Date: Mon, 7 Feb 2022 13:43:47 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9A=A1=20add=20terraform=20fmt=20workflo?= =?UTF-8?q?w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..6a159a6 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,23 @@ +name: 'Terraform' + +on: + pull_request: + +jobs: + terraform: + name: 'Terraform Format' + runs-on: ubuntu-20.04 + + defaults: + run: + shell: bash + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Terraform + uses: hashicorp/setup-terraform@v1 + + - name: Terraform Format + run: terraform fmt -check \ No newline at end of file