Skip to content

Commit

Permalink
fix(mirrorbits-lite) remove all mocks from packaged chart
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Duportal <[email protected]>
  • Loading branch information
dduportal committed Oct 4, 2023
1 parent 66a5130 commit be2bf93
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/mirrorbits-lite/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
.idea/
*.tmproj
.vscode/
tests/*
tests/
2 changes: 1 addition & 1 deletion charts/mirrorbits-lite/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Mirrobits lite helm chart for Kubernetes
name: mirrorbits-lite
version: 0.3.0
version: 0.3.1
appVersion: "v0.5.1"
maintainers:
- email: [email protected]
Expand Down
10 changes: 5 additions & 5 deletions charts/mirrorbits-lite/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ Data directory volume definition. Might be defined from parent chart templates o
based on the presence of the global value provided by the parent chart.
*/}}
{{- define "mirrorbits-lite.data-volume" -}}
{{- if (dig "global" "storage" "enabled" false .Values.AsMap) -}}
{{- if and (dig "global" "storage" "enabled" false .Values.AsMap) .Values.global.storage.claimNameTpl -}}
persistentVolumeClaim:
claimName: {{ include "mirrorbits-parent.pvc-name" . }}
{{- else }}
{{- if .Values.repository.persistentVolumeClaim.enabled }}
claimName: {{ printf "%s" (tpl .Values.global.storage.claimNameTpl $) | trim | trunc 63 }}
{{- else -}}
{{- if .Values.repository.persistentVolumeClaim.enabled -}}
persistentVolumeClaim:
claimName: {{ .Values.repository.name | default (printf "%s-binary" (include "mirrorbits-lite.fullname" .)) }}
{{- else }}
{{- else -}}
emptyDir: {}
{{- end -}}
{{- end -}}
Expand Down
3 changes: 0 additions & 3 deletions charts/mirrorbits-lite/templates/mocks/_helpers.tpl

This file was deleted.

1 change: 1 addition & 0 deletions charts/mirrorbits-lite/tests/parent_values_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set:
global:
storage:
enabled: true
claimNameTpl: '{{ default "parent-chart-shared-data" }}'
ingress:
enabled: true
# Try to specify a ingress which must be ignored (parent prevails)
Expand Down

0 comments on commit be2bf93

Please sign in to comment.