Skip to content

Commit

Permalink
change configmap to be more similar to other existing configmaps
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
  • Loading branch information
thjaeckle committed Jan 26, 2024
1 parent f95b630 commit 3f6be0f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions deployment/helm/ditto/templates/hooks/scripts-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@
#
# SPDX-License-Identifier: EPL-2.0
{{- if and .Values.global.podDeletionCostPatching.enabled -}}
{{- $releaseName := .Release.Name -}}
{{- $name := include "ditto.name" . -}}
{{- $labels := include "ditto.labels" . -}}
{{ $root := . }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "ditto.fullname" . }}-hook-scripts
name: {{ $releaseName }}-hook-scripts
labels:
app.kubernetes.io/name: {{ include "ditto.name" . }}-hook-scripts
{{ include "ditto.labels" . | indent 4 }}
app.kubernetes.io/name: {{ $name }}-hook-scripts
{{ $labels | indent 4 }}
data:
patch-pods-deletion-cost.sh: |
{{- tpl (.Files.Get "scripts/patch-pods-deletion-cost.sh") . | nindent 4 }}
{{ $root.Files.Get "scripts/patch-pods-deletion-cost.sh" | nindent 4 }}
{{- end }}

0 comments on commit 3f6be0f

Please sign in to comment.