From 54df0532573b1c6dcf4c3944ddaff09c65d0af22 Mon Sep 17 00:00:00 2001
From: Janne Mareike Koschinski <janne@kuschku.de>
Date: Sat, 14 May 2022 12:56:23 +0200
Subject: [PATCH] feat: update imghost chart

---
 imghost/Chart.yaml                         |  4 ++--
 imghost/templates/deployment-backend.yaml  |  2 +-
 imghost/templates/deployment-frontend.yaml |  2 +-
 imghost/values.yaml                        | 26 ++++++++++++----------
 4 files changed, 18 insertions(+), 16 deletions(-)

diff --git a/imghost/Chart.yaml b/imghost/Chart.yaml
index cc19bda..40316d9 100644
--- a/imghost/Chart.yaml
+++ b/imghost/Chart.yaml
@@ -2,5 +2,5 @@ apiVersion: v2
 name: imghost
 description: Helm Chart for imghost
 type: application
-version: 1.0.3
-appVersion: "04828ff3"
+version: 1.0.4
+appVersion: "db8aa616"
diff --git a/imghost/templates/deployment-backend.yaml b/imghost/templates/deployment-backend.yaml
index 045227d..be8b978 100644
--- a/imghost/templates/deployment-backend.yaml
+++ b/imghost/templates/deployment-backend.yaml
@@ -59,7 +59,7 @@ spec:
               path: /healthz
               port: metrics
           resources:
-            {{- toYaml .Values.backend | nindent 12 }}
+            {{- toYaml .Values.backend.resources | nindent 12 }}
           volumeMounts:
             - mountPath: "/config.yaml"
               name: config
diff --git a/imghost/templates/deployment-frontend.yaml b/imghost/templates/deployment-frontend.yaml
index 2feb7aa..10d5ac4 100644
--- a/imghost/templates/deployment-frontend.yaml
+++ b/imghost/templates/deployment-frontend.yaml
@@ -59,7 +59,7 @@ spec:
               path: /healthz
               port: http
           resources:
-            {{- toYaml .Values.frontend | nindent 12 }}
+            {{- toYaml .Values.frontend.resources | nindent 12 }}
           volumeMounts:
             - mountPath: "/config.yaml"
               name: config
diff --git a/imghost/values.yaml b/imghost/values.yaml
index c7be62b..a2ed0d1 100644
--- a/imghost/values.yaml
+++ b/imghost/values.yaml
@@ -8,23 +8,25 @@ frontend:
   repository: k8r.eu/justjanne/imghost
   pullPolicy: IfNotPresent
   tag: ""
-  limits:
-    cpu: 500m
-    memory: 512Mi
-  requests:
-    cpu: 10m
-    memory: 64Mi
+  resources:
+    limits:
+      cpu: 500m
+      memory: 512Mi
+    requests:
+      cpu: 10m
+      memory: 64Mi
 
 backend:
   repository: k8r.eu/justjanne/imghost
   pullPolicy: IfNotPresent
   tag: ""
-  limits:
-    cpu: 4
-    memory: 4Gi
-  requests:
-    cpu: 10m
-    memory: 64Mi
+  resources:
+    limits:
+      cpu: 4
+      memory: 4Gi
+    requests:
+      cpu: 10m
+      memory: 64Mi
 
 oauth2:
   repository: k8r.eu/justjanne/keycloak-proxy
-- 
GitLab