From d76a53d74e253eae27fe707b34761c2c0c17e1c9 Mon Sep 17 00:00:00 2001
From: mtweeman <mtweeman@gmail.com>
Date: Mon, 18 Nov 2024 10:49:38 +0100
Subject: [PATCH] feat(manager/asdf): add supported tools (#32333)

---
 lib/modules/manager/asdf/extract.spec.ts      | 32 +++++++++++++++++++
 .../manager/asdf/upgradeable-tooling.ts       | 32 +++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/lib/modules/manager/asdf/extract.spec.ts b/lib/modules/manager/asdf/extract.spec.ts
index ca71bc4c98..78dfb20a73 100644
--- a/lib/modules/manager/asdf/extract.spec.ts
+++ b/lib/modules/manager/asdf/extract.spec.ts
@@ -49,6 +49,7 @@ actionlint 0.7.0
 adr-tools 3.0.0
 argocd 2.5.4
 asdf-plugin-manager 1.1.1
+atmos 1.100.0
 awscli 2.8.6
 bun 0.2.2
 cargo-make 0.36.2
@@ -85,6 +86,7 @@ idris 1.3.4
 java adoptopenjdk-16.0.0+36
 julia 1.8.2
 just 1.7.0
+k3s 1.31.2+k3s1
 kind 0.19.0
 kotlin 1.7.20
 kubectl 1.26.3
@@ -97,7 +99,9 @@ minikube 1.33.1
 nim 1.6.8
 nodejs 18.12.0
 ocaml 4.14.0
+oci 3.50.0
 opentofu 1.6.0
+packer 1.11.2
 perl 5.37.5
 php 8.1.12
 pnpm 7.26.2
@@ -167,6 +171,13 @@ dummy 1.2.3
             depName: 'asdf-plugin-manager',
             extractVersion: '^v(?<version>\\S+)',
           },
+          {
+            currentValue: '1.100.0',
+            datasource: 'github-releases',
+            packageName: 'cloudposse/atmos',
+            depName: 'atmos',
+            extractVersion: '^v(?<version>\\S+)',
+          },
           {
             currentValue: '2.8.6',
             datasource: 'github-tags',
@@ -406,6 +417,13 @@ dummy 1.2.3
             packageName: 'casey/just',
             depName: 'just',
           },
+          {
+            currentValue: '1.31.2+k3s1',
+            datasource: 'github-releases',
+            packageName: 'k3s-io/k3s',
+            depName: 'k3s',
+            extractVersion: '^v(?<version>\\S+)',
+          },
           {
             currentValue: '0.19.0',
             datasource: 'github-releases',
@@ -486,6 +504,13 @@ dummy 1.2.3
             packageName: 'ocaml/ocaml',
             depName: 'ocaml',
           },
+          {
+            currentValue: '3.50.0',
+            datasource: 'github-releases',
+            packageName: 'oracle/oci-cli',
+            depName: 'oci',
+            extractVersion: '^v(?<version>\\S+)',
+          },
           {
             currentValue: '1.6.0',
             datasource: 'github-releases',
@@ -493,6 +518,13 @@ dummy 1.2.3
             depName: 'opentofu',
             extractVersion: '^v(?<version>\\S+)',
           },
+          {
+            currentValue: '1.11.2',
+            datasource: 'github-releases',
+            packageName: 'hashicorp/packer',
+            depName: 'packer',
+            extractVersion: '^v(?<version>\\S+)',
+          },
           {
             currentValue: '5.37.5',
             datasource: 'github-tags',
diff --git a/lib/modules/manager/asdf/upgradeable-tooling.ts b/lib/modules/manager/asdf/upgradeable-tooling.ts
index 10ede4ce9b..0a5f371c43 100644
--- a/lib/modules/manager/asdf/upgradeable-tooling.ts
+++ b/lib/modules/manager/asdf/upgradeable-tooling.ts
@@ -79,6 +79,14 @@ export const upgradeableTooling: Record<string, ToolingDefinition> = {
       extractVersion: '^v(?<version>\\S+)',
     },
   },
+  atmos: {
+    asdfPluginUrl: 'https://github.com/cloudposse/asdf-atmos',
+    config: {
+      datasource: GithubReleasesDatasource.id,
+      packageName: 'cloudposse/atmos',
+      extractVersion: '^v(?<version>\\S+)',
+    },
+  },
   awscli: {
     asdfPluginUrl: 'https://github.com/MetricMike/asdf-awscli',
     config: {
@@ -416,6 +424,14 @@ export const upgradeableTooling: Record<string, ToolingDefinition> = {
       packageName: 'casey/just',
     },
   },
+  k3s: {
+    asdfPluginUrl: 'https://github.com/dmpe/asdf-k3s',
+    config: {
+      datasource: GithubReleasesDatasource.id,
+      packageName: 'k3s-io/k3s',
+      extractVersion: '^v(?<version>\\S+)',
+    },
+  },
   kind: {
     asdfPluginUrl: 'https://github.com/johnlayton/asdf-kind',
     config: {
@@ -510,6 +526,14 @@ export const upgradeableTooling: Record<string, ToolingDefinition> = {
       packageName: 'ocaml/ocaml',
     },
   },
+  oci: {
+    asdfPluginUrl: 'https://github.com/yasn77/asdf-oci',
+    config: {
+      datasource: GithubReleasesDatasource.id,
+      packageName: 'oracle/oci-cli',
+      extractVersion: '^v(?<version>\\S+)',
+    },
+  },
   opentofu: {
     asdfPluginUrl: 'https://github.com/virtualroot/asdf-opentofu',
     config: {
@@ -518,6 +542,14 @@ export const upgradeableTooling: Record<string, ToolingDefinition> = {
       extractVersion: '^v(?<version>\\S+)',
     },
   },
+  packer: {
+    asdfPluginUrl: 'https://github.com/asdf-community/asdf-hashicorp',
+    config: {
+      datasource: GithubReleasesDatasource.id,
+      packageName: 'hashicorp/packer',
+      extractVersion: '^v(?<version>\\S+)',
+    },
+  },
   perl: {
     asdfPluginUrl: 'https://github.com/ouest/asdf-perl',
     config: {
-- 
GitLab