From 1edccce9b28780cf09b3fc6b1232afb154dc8af5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de>
Date: Fri, 16 Apr 2021 12:54:52 +0200
Subject: [PATCH] Make Theodolite image configurable

---
 execution/helm/templates/theodolite/crd-benchmark.yaml      | 2 +-
 execution/helm/templates/theodolite/crd-execution.yaml      | 2 +-
 execution/helm/templates/theodolite/thedolite-operator.yaml | 3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/execution/helm/templates/theodolite/crd-benchmark.yaml b/execution/helm/templates/theodolite/crd-benchmark.yaml
index 9d7468b49..3244b9d19 100644
--- a/execution/helm/templates/theodolite/crd-benchmark.yaml
+++ b/execution/helm/templates/theodolite/crd-benchmark.yaml
@@ -1,4 +1,4 @@
-{{- if .Values.benchmarkCRD.create -}}
+{{- if .Values.operator.benchmarkCRD.create -}}
 apiVersion: apiextensions.k8s.io/v1beta1
 kind: CustomResourceDefinition
 metadata:
diff --git a/execution/helm/templates/theodolite/crd-execution.yaml b/execution/helm/templates/theodolite/crd-execution.yaml
index 73b58397b..5979cd5b6 100644
--- a/execution/helm/templates/theodolite/crd-execution.yaml
+++ b/execution/helm/templates/theodolite/crd-execution.yaml
@@ -1,4 +1,4 @@
-{{- if .Values.executionCRD.create -}}
+{{- if .Values.operator.executionCRD.create -}}
 apiVersion: apiextensions.k8s.io/v1beta1
 kind: CustomResourceDefinition
 metadata:
diff --git a/execution/helm/templates/theodolite/thedolite-operator.yaml b/execution/helm/templates/theodolite/thedolite-operator.yaml
index 3af9cfffd..ba63ce348 100644
--- a/execution/helm/templates/theodolite/thedolite-operator.yaml
+++ b/execution/helm/templates/theodolite/thedolite-operator.yaml
@@ -17,7 +17,8 @@ spec:
       serviceAccountName:  {{ include "theodolite.serviceAccountName" . }}
       containers:
         - name: theodolite
-          image: ghcr.io/cau-se/theodolite:theodolite-kotlin-latest
+          image: "{{ .Values.operator.image }}:{{ .Values.operator.imageTag }}"
+          imagePullPolicy: "{{ .Values.operator.imagePullPolicy }}"
           env:
             - name: NAMESPACE
               value: {{ .Release.Namespace }}
-- 
GitLab