From 78e65a570566747f6397b8b19381821309b0cc74 Mon Sep 17 00:00:00 2001
From: Timo Furrer <tfurrer@gitlab.com>
Date: Fri, 10 Jan 2025 11:47:49 +0100
Subject: [PATCH] Remove outdated OpenTofu versions to reduce build matrix

Changelog: removed
---
 README.md                           | 13 ++-----------
 opentofu_versions.yaml              | 13 ++-----------
 templates/apply.yml                 | 13 ++-----------
 templates/custom-command.yml        | 13 ++-----------
 templates/destroy.yml               | 13 ++-----------
 templates/fmt.yml                   | 13 ++-----------
 templates/full-pipeline.yml         | 13 ++-----------
 templates/graph.yml                 | 13 ++-----------
 templates/job-templates.yml         | 13 ++-----------
 templates/plan.yml                  | 13 ++-----------
 templates/test.yml                  | 13 ++-----------
 templates/validate-plan-apply.yml   | 13 ++-----------
 templates/validate-plan-destroy.yml | 13 ++-----------
 templates/validate-plan.yml         | 13 ++-----------
 templates/validate.yml              | 13 ++-----------
 15 files changed, 30 insertions(+), 165 deletions(-)

diff --git a/README.md b/README.md
index 0a76f1a..efe44f9 100644
--- a/README.md
+++ b/README.md
@@ -289,17 +289,8 @@ The following OpenTofu versions are available with this component via the `opent
 
 - [`1.9.0`](https://github.com/opentofu/opentofu/releases/tag/v1.9.0)
 - [`1.8.8`](https://github.com/opentofu/opentofu/releases/tag/v1.8.8)
-- [`1.8.7`](https://github.com/opentofu/opentofu/releases/tag/v1.8.7)
-- [`1.9.0-beta2`](https://github.com/opentofu/opentofu/releases/tag/v1.9.0-beta2)
-- [`1.8.6`](https://github.com/opentofu/opentofu/releases/tag/v1.8.6)
-- [`1.8.5`](https://github.com/opentofu/opentofu/releases/tag/v1.8.5)
-- [`1.8.4`](https://github.com/opentofu/opentofu/releases/tag/v1.8.4)
-- [`1.8.3`](https://github.com/opentofu/opentofu/releases/tag/v1.8.3)
-- [`1.8.2`](https://github.com/opentofu/opentofu/releases/tag/v1.8.2)
-- [`1.8.1`](https://github.com/opentofu/opentofu/releases/tag/v1.8.1)
-- [`1.8.0`](https://github.com/opentofu/opentofu/releases/tag/v1.8.0)
-- [`1.7.3`](https://github.com/opentofu/opentofu/releases/tag/v1.7.3)
-- [`1.6.2`](https://github.com/opentofu/opentofu/releases/tag/v1.6.2)
+- [`1.7.7`](https://github.com/opentofu/opentofu/releases/tag/v1.7.7)
+- [`1.6.3`](https://github.com/opentofu/opentofu/releases/tag/v1.6.3)
 
 ### Environment Variables
 
diff --git a/opentofu_versions.yaml b/opentofu_versions.yaml
index abd05bc..72d649a 100644
--- a/opentofu_versions.yaml
+++ b/opentofu_versions.yaml
@@ -3,17 +3,8 @@
   supported_versions: &supported_versions
     - '1.9.0'
     - '1.8.8'
-    - '1.8.7'
-    - '1.9.0-beta2'
-    - '1.8.6'
-    - '1.8.5'
-    - '1.8.4'
-    - '1.8.3'
-    - '1.8.2'
-    - '1.8.1'
-    - '1.8.0'
-    - '1.7.3'
-    - '1.6.2'
+    - '1.7.7'
+    - '1.6.3'
   hack_templates_supported_versions:
     - *supported_versions
     - '$OPENTOFU_VERSION'
diff --git a/templates/apply.yml b/templates/apply.yml
index a48a099..9ee6039 100644
--- a/templates/apply.yml
+++ b/templates/apply.yml
@@ -28,17 +28,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/custom-command.yml b/templates/custom-command.yml
index f8abc2d..ce22b3e 100644
--- a/templates/custom-command.yml
+++ b/templates/custom-command.yml
@@ -28,17 +28,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/destroy.yml b/templates/destroy.yml
index 2b9096b..413b2ed 100644
--- a/templates/destroy.yml
+++ b/templates/destroy.yml
@@ -28,17 +28,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/fmt.yml b/templates/fmt.yml
index cc8c3c5..ca75f3d 100644
--- a/templates/fmt.yml
+++ b/templates/fmt.yml
@@ -28,17 +28,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/full-pipeline.yml b/templates/full-pipeline.yml
index 76d0bad..f4f22f1 100644
--- a/templates/full-pipeline.yml
+++ b/templates/full-pipeline.yml
@@ -37,17 +37,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/graph.yml b/templates/graph.yml
index 63c6516..02da517 100644
--- a/templates/graph.yml
+++ b/templates/graph.yml
@@ -28,17 +28,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/job-templates.yml b/templates/job-templates.yml
index 17462cd..387f02f 100644
--- a/templates/job-templates.yml
+++ b/templates/job-templates.yml
@@ -37,17 +37,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/plan.yml b/templates/plan.yml
index af0849f..752c37c 100644
--- a/templates/plan.yml
+++ b/templates/plan.yml
@@ -28,17 +28,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/test.yml b/templates/test.yml
index 4d9df88..79b2b0b 100644
--- a/templates/test.yml
+++ b/templates/test.yml
@@ -28,17 +28,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/validate-plan-apply.yml b/templates/validate-plan-apply.yml
index 2e0b96f..6924516 100644
--- a/templates/validate-plan-apply.yml
+++ b/templates/validate-plan-apply.yml
@@ -31,17 +31,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/validate-plan-destroy.yml b/templates/validate-plan-destroy.yml
index 69644d5..c6a54b7 100644
--- a/templates/validate-plan-destroy.yml
+++ b/templates/validate-plan-destroy.yml
@@ -31,17 +31,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/validate-plan.yml b/templates/validate-plan.yml
index 4dd446c..96d199e 100644
--- a/templates/validate-plan.yml
+++ b/templates/validate-plan.yml
@@ -28,17 +28,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
diff --git a/templates/validate.yml b/templates/validate.yml
index 10f564c..e4dcb8e 100644
--- a/templates/validate.yml
+++ b/templates/validate.yml
@@ -28,17 +28,8 @@ spec:
       options:
         - '1.9.0'
         - '1.8.8'
-        - '1.8.7'
-        - '1.9.0-beta2'
-        - '1.8.6'
-        - '1.8.5'
-        - '1.8.4'
-        - '1.8.3'
-        - '1.8.2'
-        - '1.8.1'
-        - '1.8.0'
-        - '1.7.3'
-        - '1.6.2'
+        - '1.7.7'
+        - '1.6.3'
         - '$OPENTOFU_VERSION'
       description: 'OpenTofu version that should be used.'
 
-- 
GitLab