From 845a5c931db7f3a3ea7d985bdb0f82e5deaf2030 Mon Sep 17 00:00:00 2001 From: Alexander Dammeier Date: Wed, 24 Jul 2024 13:41:12 +0200 Subject: [PATCH] #185 use fixed name for configmap the name of this configmapp is hardcoded in th operator --- controllers/config/config.go | 1 + k8s/helm/templates/additional-images.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/config/config.go b/controllers/config/config.go index 69caeca3..1a5f479a 100644 --- a/controllers/config/config.go +++ b/controllers/config/config.go @@ -18,6 +18,7 @@ const ( const cacheDir = "/tmp/dogu-registry-cache" const ( + //FIXME: do not hardcode resource names! (especially because there is a variable in the helm chart for that) // OperatorAdditionalImagesConfigmapName contains the configmap name which consists of auxiliary yet necessary container images. OperatorAdditionalImagesConfigmapName = "k8s-dogu-operator-additional-images" // ChownInitImageConfigmapNameKey contains the key to retrieve the chown init container image from the OperatorAdditionalImagesConfigmapName configmap. diff --git a/k8s/helm/templates/additional-images.yaml b/k8s/helm/templates/additional-images.yaml index de9e91e2..dcac054b 100644 --- a/k8s/helm/templates/additional-images.yaml +++ b/k8s/helm/templates/additional-images.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: ConfigMap metadata: - name: {{ include "k8s-dogu-operator.name" . }}-additional-images + name: k8s-dogu-operator-additional-images labels: {{- include "k8s-dogu-operator.labels" . | nindent 4 }} data: