From be4bdfe283d91e99787070fed14891b333ecf815 Mon Sep 17 00:00:00 2001
From: Maarten de Waard <maarten@greenhost.nl>
Date: Mon, 1 Aug 2022 16:27:46 +0200
Subject: [PATCH] specify nextcloud image using upstream template

---
 templates/job-configure-nextcloud.yaml | 2 +-
 templates/job-setup-apps.yaml          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/job-configure-nextcloud.yaml b/templates/job-configure-nextcloud.yaml
index 902797bf..f40d132f 100644
--- a/templates/job-configure-nextcloud.yaml
+++ b/templates/job-configure-nextcloud.yaml
@@ -23,7 +23,7 @@ spec:
       securityContext: {{- include "nextcloud-onlyoffice.securityContext" . | indent 8 }}
       containers:
       - name: {{ .Release.Name }}-configure-nextcloud-job
-        image: {{ .Values.nextcloud.image.repository }}:{{ .Values.nextcloud.image.tag }}
+        image: {{ template "nextcloud.image" .Subcharts.nextcloud }}
         command:
           - "/usr/local/bin/php"
           - "/var/www/html/occ"
diff --git a/templates/job-setup-apps.yaml b/templates/job-setup-apps.yaml
index 929756b4..30f6f97d 100644
--- a/templates/job-setup-apps.yaml
+++ b/templates/job-setup-apps.yaml
@@ -24,7 +24,7 @@ spec:
       securityContext: {{- include "nextcloud-onlyoffice.securityContext" . | indent 8 }}
       containers:
       - name: {{ .Release.Name }}-setup-apps-job
-        image: {{ .Values.nextcloud.image.repository }}:{{ .Values.nextcloud.image.tag }}
+        image: {{ template "nextcloud.image" .Subcharts.nextcloud }}
         command:
           - "/bin/bash"
           - "/var/local/setup-apps.sh"
-- 
GitLab