Skip to content

Commit

Permalink
feat (icm): added possibility to empty database and site folder (inte…
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzKarsch committed Jun 13, 2023
1 parent e4eacfb commit c5b7dc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions charts/icm-as/templates/cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
app: {{ template "icm-as.fullname" . }}-cleanup
annotations:
# This is what defines this resource as a hook. Without this line, the
# job is considered part of the release.
# Only include "pre-install" if the site type is "existingClaim" since the
# volume does not exist otherwise.
{{- if eq .Values.persistence.sites.type "existingClaim" }}
"helm.sh/hook": pre-upgrade,pre-install
{{- else }}
"helm.sh/hook": pre-upgrade
{{- end }}
"helm.sh/hook-weight": "-1"
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
spec:
Expand Down
2 changes: 1 addition & 1 deletion charts/icm-as/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -367,4 +367,4 @@ replication:
# Configuration for the cleanup Task
cleanup:
# Enable or disable the Cleanup Task. If set to true, the database and the sites folder will be cleaned up before deployment.
enabled: false
enabled: false

0 comments on commit c5b7dc2

Please sign in to comment.