Skip to content

Commit

Permalink
Fix multiple resources in one file in template
Browse files Browse the repository at this point in the history
  • Loading branch information
Wattos committed Jun 1, 2023
1 parent d8e85b0 commit b883500
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/common/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: common
version: "1.0.1"
version: "1.0.2"
kubeVersion: ">=1.23.0-0"
description: The common chart
appVersion: "v1"
Expand Down
5 changes: 3 additions & 2 deletions charts/common/templates/_deployment.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- define "common.deployment" -}}
{{- if .Values.deployment.enabled -}}
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -47,5 +48,5 @@ spec:
server: "{{ .Values.storage.mounts.media.volume.nfs.server }}"
path: "{{ .Values.storage.mounts.media.volume.nfs.path }}"
{{- end }}
{{- end }}
{{- end }}
{{- end -}}
{{- end -}}
3 changes: 2 additions & 1 deletion charts/common/templates/_ingress.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- define "common.ingress" -}}
{{- if .Values.ingress.enabled -}}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand Down Expand Up @@ -29,4 +30,4 @@ spec:
hosts:
- {{ .Values.ingress.host }}
{{- end -}}
{{- end }}
{{- end -}}
3 changes: 2 additions & 1 deletion charts/common/templates/_service.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- define "common.service" -}}
{{- if .Values.service.enabled -}}
---
apiVersion: v1
kind: Service
metadata:
Expand All @@ -16,4 +17,4 @@ spec:
app: {{ include "common.names.fullname" . }}

{{- end -}}
{{- end }}
{{- end -}}
5 changes: 3 additions & 2 deletions charts/common/templates/_volume.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- define "common.volume" -}}
{{- if .Values.storage.mounts.config.enabled }}
{{- if .Values.storage.mounts.config.enabled -}}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand All @@ -12,4 +13,4 @@ spec:
requests:
storage: "{{ .Values.storage.mounts.config.size }}"
{{- end -}}
{{- end }}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/sabnzbd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: sabnzbd
version: "1.0.2"
version: "1.0.3"
kubeVersion: ">=1.23.0-0"
description: Helm Chart to deploy sabnzbd
appVersion: "v3"
Expand All @@ -10,7 +10,7 @@ maintainers:
name: wattos
dependencies:
- name: common
version: "1.0.1"
version: "1.0.2"
repository: "file://../common"
sources:
- https://github.com/wattos/home-lab-charts

0 comments on commit b883500

Please sign in to comment.