Skip to content

Commit

Permalink
fix(httpd) 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 92fc2ad commit e624207
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions charts/httpd/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
.idea/
*.tmproj
.vscode/
tests/
6 changes: 5 additions & 1 deletion charts/httpd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
apiVersion: v1
description: httpd helm chart for Kubernetes
name: httpd
version: 0.2.0
version: 0.2.1
appVersion: v2.4
maintainers:
- email: [email protected]
name: jenkins-infra-team
12 changes: 6 additions & 6 deletions charts/httpd/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 "httpd.html-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 or .Values.repository.persistentVolumeClaim.enabled .Values.repository.reuseExistingPersistentVolumeClaim }}
claimName: {{ tpl .Values.global.storage.claimNameTpl $ }}
{{- else -}}
{{- if or .Values.repository.persistentVolumeClaim.enabled .Values.repository.reuseExistingPersistentVolumeClaim -}}
persistentVolumeClaim:
claimName: {{ .Values.repository.name | default (printf "%s-binary" (include "httpd.fullname" .)) }}
{{- else }}
claimName: {{ .Values.repository.name | default (printf "%s-binary" (include "httpd.fullname" .)) -}}
{{- else -}}
emptyDir: {}
{{- end -}}
{{- end -}}
Expand Down
3 changes: 0 additions & 3 deletions charts/httpd/templates/mocks/_helpers.tpl

This file was deleted.

1 change: 1 addition & 0 deletions charts/httpd/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 e624207

Please sign in to comment.