From 49c8f9b68909d892bc0c2a8a9f49185cd06ce354 Mon Sep 17 00:00:00 2001
From: Sebastian <sebastian.karius@gmx.net>
Date: Fri, 8 Nov 2024 09:18:22 +0100
Subject: [PATCH] update coder to 2.16.1

---
 .gitlab-ci.yml                    | 4 ++--
 helm/ti-coder/Chart.yaml          | 6 +++---
 helm/ti-coder/templates/NOTES.txt | 2 +-
 helm/ti-coder/templates/ssh.yaml  | 9 +++++++++
 helm/ti-coder/values.yaml         | 4 +++-
 5 files changed, 18 insertions(+), 7 deletions(-)
 create mode 100644 helm/ti-coder/templates/ssh.yaml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6d63849..600f8fc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -42,7 +42,7 @@ helm-package:
   artifacts:
     paths:
       - vdo-ninja-0.1.2.tgz
-      - ti-coder-0.2.6.tgz
+      - ti-coder-0.3.0.tgz
       - ti-lamp-0.1.2.tgz
     expire_in: 1 hour
 
@@ -58,7 +58,7 @@ helm-publish:
   image: curlimages/curl:latest
   script:
     - 'curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@vdo-ninja-0.1.2.tgz" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
-    - 'curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@ti-coder-0.2.6.tgz" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
+    - 'curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@ti-coder-0.3.0.tgz" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
     - 'curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@ti-lamp-0.1.2.tgz" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
 
 stages:
diff --git a/helm/ti-coder/Chart.yaml b/helm/ti-coder/Chart.yaml
index 619b0d0..e2c305f 100644
--- a/helm/ti-coder/Chart.yaml
+++ b/helm/ti-coder/Chart.yaml
@@ -15,12 +15,12 @@ type: application
 # This is the chart version. This version number should be incremented each time you make changes
 # to the chart and its templates, including the app version.
 # Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.2.6
+version: 0.3.0
 # This is the version number of the application being deployed. This version number should be
 # incremented each time you make changes to the application. Versions are not expected to
 # follow Semantic Versioning. They should reflect the version the application is using.
 # It is recommended to use it with quotes.
-appVersion: "2.15.3"
+appVersion: "2.16.1"
 
 dependencies:
   - name: postgresql
@@ -28,5 +28,5 @@ dependencies:
     repository: "oci://registry-1.docker.io/bitnamicharts"
 
   - name: coder
-    version: "2.15.3"
+    version: "2.16.1"
     repository: "https://helm.coder.com/v2"
diff --git a/helm/ti-coder/templates/NOTES.txt b/helm/ti-coder/templates/NOTES.txt
index 63f8e59..00d9835 100644
--- a/helm/ti-coder/templates/NOTES.txt
+++ b/helm/ti-coder/templates/NOTES.txt
@@ -1,3 +1,3 @@
-Installed coder in version 2.15.3 and Postgres in version 16.3.
+Installed coder in version 2.16.1 and Postgres in version 16.3.
 
 Das Passwort für die Datenbank wurde im Secret "coder-postgresql" abgelegt.
\ No newline at end of file
diff --git a/helm/ti-coder/templates/ssh.yaml b/helm/ti-coder/templates/ssh.yaml
new file mode 100644
index 0000000..0f861b6
--- /dev/null
+++ b/helm/ti-coder/templates/ssh.yaml
@@ -0,0 +1,9 @@
+apiVersion: v1
+kind: Secret
+metadata:
+  name: coder-ssh-key
+  labels:
+    app: coder
+
+data:
+  id_ed25519: {{ .Values.coder.id_ed25519 | b64enc }}
diff --git a/helm/ti-coder/values.yaml b/helm/ti-coder/values.yaml
index 602d108..623705e 100644
--- a/helm/ti-coder/values.yaml
+++ b/helm/ti-coder/values.yaml
@@ -21,6 +21,8 @@ postgresql:
         cpu: "300m"
 
 coder:
+  id_ed25519: ""
+
   coder:
     env:
       - name: CODER_PG_CONNECTION_URL
@@ -41,4 +43,4 @@ coder:
         {
           nginx.ingress.kubernetes.io/proxy-body-size: "10g"
         }
-    version: "2.15.1"
+    version: "2.16.1"
-- 
GitLab