Skip to content

Commit

Permalink
chore: remove max terraform version limit (#152)
Browse files Browse the repository at this point in the history
* chore: remove max terraform version limit

* fix(ci): use the actual min and max versions in tests

---------

Co-authored-by: Noah Kraemer <[email protected]>
  • Loading branch information
tembleking and nkraemer-sysdig authored Nov 5, 2024
1 parent f3c732c commit bd56fe9
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Install Terraform v${{ steps.minMax.outputs.minVersion }}
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.5 # ${{ steps.minMax.outputs.minVersion }}
terraform_version: ${{ steps.minMax.outputs.minVersion }}
- name: Install pre-commit dependencies
run: |
pip install pre-commit
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
- name: Install Terraform v${{ matrix.version }}
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.5 #${{ matrix.version }}
terraform_version: ${{ matrix.version }}
- name: Install pre-commit dependencies
run: |
pip install pre-commit
Expand Down
2 changes: 1 addition & 1 deletion examples/organization-org_compliance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module "secure-for-cloud_example_organization" {

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0, < 1.6.0 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_google"></a> [google](#requirement\_google) | >= 4.21.0, < 5.0.0 |
| <a name="requirement_google-beta"></a> [google-beta](#requirement\_google-beta) | >= 4.21.0, < 5.0.0 |
| <a name="requirement_sysdig"></a> [sysdig](#requirement\_sysdig) | >= 0.5.46 |
Expand Down
2 changes: 1 addition & 1 deletion examples/organization-org_compliance/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.15.0, < 1.6.0"
required_version = ">= 0.15.0"

required_providers {
google = {
Expand Down
2 changes: 1 addition & 1 deletion examples/organization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ module "secure-for-cloud_example_organization" {

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0, < 1.6.0 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_google"></a> [google](#requirement\_google) | >= 4.21.0, < 5.0.0 |
| <a name="requirement_google-beta"></a> [google-beta](#requirement\_google-beta) | >= 4.21.0, < 5.0.0 |
| <a name="requirement_sysdig"></a> [sysdig](#requirement\_sysdig) | >= 0.5.21 |
Expand Down
2 changes: 1 addition & 1 deletion examples/organization/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.15.0, < 1.6.0"
required_version = ">= 0.15.0"

required_providers {
google = {
Expand Down
2 changes: 1 addition & 1 deletion examples/single-project-k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ See [inputs summary](#inputs) or module module [`variables.tf`](./variables.tf)

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0, < 1.6.0 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_google"></a> [google](#requirement\_google) | >= 4.21.0, < 5.0.0 |
| <a name="requirement_google-beta"></a> [google-beta](#requirement\_google-beta) | >= 4.21.0, < 5.0.0 |
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >=2.3.0 |
Expand Down
2 changes: 1 addition & 1 deletion examples/single-project-k8s/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.15.0, < 1.6.0"
required_version = ">= 0.15.0"
required_providers {
google = {
source = "hashicorp/google"
Expand Down
2 changes: 1 addition & 1 deletion examples/single-project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module "secure-for-cloud_example_single-project" {

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0, < 1.6.0 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_google"></a> [google](#requirement\_google) | >= 4.21.0, < 5.0.0 |
| <a name="requirement_google-beta"></a> [google-beta](#requirement\_google-beta) | >= 4.21.0, < 5.0.0 |
| <a name="requirement_sysdig"></a> [sysdig](#requirement\_sysdig) | >= 0.5.21 |
Expand Down
2 changes: 1 addition & 1 deletion examples/single-project/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.15.0, < 1.6.0"
required_version = ">= 0.15.0"

required_providers {
google = {
Expand Down
2 changes: 1 addition & 1 deletion modules/services/cloud-bench-workload-identity/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.15.0, < 1.6.0"
required_version = ">= 0.15.0"

required_providers {
google = {
Expand Down
2 changes: 1 addition & 1 deletion modules/services/cloud-bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deployed on **Sysdig Backend**

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0, < 1.6.0 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_google"></a> [google](#requirement\_google) | >= 4.21.0, < 5.0.0 |
| <a name="requirement_google-beta"></a> [google-beta](#requirement\_google-beta) | >= 4.21.0, < 5.0.0 |
| <a name="requirement_sysdig"></a> [sysdig](#requirement\_sysdig) | >= 0.5.21 |
Expand Down
2 changes: 1 addition & 1 deletion modules/services/cloud-bench/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.15.0, < 1.6.0"
required_version = ">= 0.15.0"

required_providers {
google = {
Expand Down
2 changes: 1 addition & 1 deletion modules/services/cloud-connector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module "cloud_connector_gcp" {

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0, < 1.6.0 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_google"></a> [google](#requirement\_google) | >= 4.21.0, < 5.0.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.1.0 |

Expand Down
2 changes: 1 addition & 1 deletion modules/services/cloud-connector/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ resource "google_cloud_run_service" "cloud_connector" {
}

dynamic "env" {
for_each = var.sysdig_secure_api_token == "" ? toset([]) : toset([1])
for_each = nonsensitive(var.sysdig_secure_api_token) == "" ? [] : [1]

content {
name = "SECURE_API_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion modules/services/cloud-connector/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.15.0, < 1.6.0"
required_version = ">= 0.15.0"

required_providers {
google = {
Expand Down

0 comments on commit bd56fe9

Please sign in to comment.