From 158688f5816b048448188aec586a0f2137416d2c Mon Sep 17 00:00:00 2001
From: Janne Mareike Koschinski <janne@kuschku.de>
Date: Thu, 9 Jun 2022 02:21:46 +0200
Subject: [PATCH] fix: correct rtorrent chart

---
 rtorrent/Chart.yaml            |  2 +-
 rtorrent/templates/secret.yaml |  2 +-
 rtorrent/values.yaml           | 11 ++++++++++-
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/rtorrent/Chart.yaml b/rtorrent/Chart.yaml
index 193857d..d03ea57 100644
--- a/rtorrent/Chart.yaml
+++ b/rtorrent/Chart.yaml
@@ -2,5 +2,5 @@ apiVersion: v2
 name: rtorrent
 description: Helm Chart for rtorrent
 type: application
-version: 0.1.3
+version: 0.1.4
 appVersion: "4b75e358"
diff --git a/rtorrent/templates/secret.yaml b/rtorrent/templates/secret.yaml
index 49a11e5..1ad6bc8 100644
--- a/rtorrent/templates/secret.yaml
+++ b/rtorrent/templates/secret.yaml
@@ -6,4 +6,4 @@ metadata:
     {{- include "rtorrent-helm.labels" . | nindent 4 }}
 stringData:
   "wireguard.conf": |-
-    {{ .Values.wireguard.config | toYaml | nindent 4 }}
+    {{- .Values.wireguard.config | nindent 4 }}
diff --git a/rtorrent/values.yaml b/rtorrent/values.yaml
index 81a9563..e0d929b 100644
--- a/rtorrent/values.yaml
+++ b/rtorrent/values.yaml
@@ -12,7 +12,16 @@ fullnameOverride: ""
 wireguard:
   enabled: false
   localNetworks: ""
-  config: ""
+  config: |-
+    [Interface]
+    PrivateKey = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+    Address = XXX.XXX.XXX.XXX/32,XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX/128
+    DNS = XXX.XXX.XXX.XXX
+
+    [Peer]
+    PublicKey = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+    AllowedIPs = XXX.XXX.XXX.XXX/32,XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX/128
+    Endpoint = XXX.XXX.XXX.XXX:XXXXX""
   securityContext:
     capabilities:
       add:
-- 
GitLab