Skip to content

Commit

Permalink
Always create custom setup configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Rosiek committed Oct 22, 2020
1 parent 010786e commit 5f6c249
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.sumologic.setup.additionalFiles }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -9,6 +8,7 @@ metadata:
app: {{ template "sumologic.labels.app.setup.configmap-custom" . }}
{{- include "sumologic.labels.common" . | nindent 4 }}
data:
{{- if .Values.sumologic.setup.additionalFiles }}
{{- range $directory, $files := .Values.sumologic.setup.additionalFiles }}
{{- range $filename, $file := $files }}
{{ printf "%s_%s: |-" $directory $filename }}
Expand Down
Empty file.
16 changes: 16 additions & 0 deletions tests/terraform_custom/static/empty.output.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
# Source: sumologic/templates/setup/setup-custom-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: RELEASE-NAME-sumologic-setup-custom
annotations:
helm.sh/hook: pre-install,pre-upgrade
helm.sh/hook-weight: "2"
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
labels:
app: RELEASE-NAME-sumologic
chart: "sumologic-%CURRENT_CHART_VERSION%"
release: "RELEASE-NAME"
heritage: "Helm"
data:

0 comments on commit 5f6c249

Please sign in to comment.