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 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