Skip to content

Commit

Permalink
#185 use fixed name for configmap
Browse files Browse the repository at this point in the history
the name of this configmapp is hardcoded in th operator
  • Loading branch information
alexander-dammeier committed Jul 24, 2024
1 parent f01302a commit 845a5c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions controllers/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion k8s/helm/templates/additional-images.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 845a5c9

Please sign in to comment.