Skip to content

Commit

Permalink
Add YAML document separators
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuderman committed Mar 13, 2024
1 parent b64a7af commit 00336ba
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions galaxykubeman/templates/config-setup-galaxy.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
metadata:
name: {{ .Release.Name }}-galaxykubeman-setup-galaxy
Expand Down
2 changes: 1 addition & 1 deletion galaxykubeman/templates/configs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.configs }}
---
apiVersion: v1
metadata:
name: {{ .Release.Name }}-galaxykubeman-configs
Expand All @@ -15,6 +16,5 @@ data:
{{- $entry | nindent 8 }}
{{- end -}}
{{- end }}
---
{{- end -}}

1 change: 1 addition & 0 deletions galaxykubeman/templates/job-predelete.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: batch/v1
kind: Job
metadata:
Expand Down
1 change: 1 addition & 0 deletions galaxykubeman/templates/job-setup-galaxy.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: batch/v1
kind: Job
metadata:
Expand Down
4 changes: 2 additions & 2 deletions galaxykubeman/templates/persistence-restore.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ if .Values.restore.persistence.nfs.galaxy.pvcID -}}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand All @@ -19,8 +20,8 @@ spec:
storage: {{ .Values.galaxy.persistence.size | quote }}
volumeMode: Filesystem
volumeName: "pvc-{{.Values.restore.persistence.nfs.galaxy.pvcID}}"
---
{{ if .Values.restore.persistence.nfs.galaxy.deployVolume -}}
---
apiVersion: v1
kind: PersistentVolume
metadata:
Expand Down Expand Up @@ -58,6 +59,5 @@ spec:
claimRef:
namespace: {{ .Release.Namespace }}
name: {{ .Release.Name }}-galaxy-galaxy-pvc
---
{{ end -}}
{{ end -}}
7 changes: 2 additions & 5 deletions galaxykubeman/templates/persistence.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- range $key, $entry := .Values.persistence -}}
{{- if $entry -}}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down Expand Up @@ -42,10 +43,8 @@ spec:
{{- tpl $nowhitespace $ | trim | nindent 2 -}}
{{- end }}

---

{{ if $entry.persistentVolume }}

---
apiVersion: v1
kind: PersistentVolume
metadata:
Expand Down Expand Up @@ -95,8 +94,6 @@ spec:
{{- tpl $nowhitespace $ | trim | nindent 2 -}}
{{- end }}

---

{{ end -}}
{{- end -}}
{{- end -}}
1 change: 1 addition & 0 deletions galaxykubeman/templates/priority-class.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
Expand Down
4 changes: 1 addition & 3 deletions galaxykubeman/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.rbac.enabled }}
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand All @@ -18,7 +19,6 @@ rules:
verbs: ["*"]

---

kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand All @@ -32,6 +32,4 @@ roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ include "galaxykubeman.roleName" . }}

---
{{- end -}}
1 change: 1 addition & 0 deletions galaxykubeman/templates/resource-quota.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
kind: ResourceQuota
metadata:
Expand Down
2 changes: 1 addition & 1 deletion galaxykubeman/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.secrets }}
---
apiVersion: v1
metadata:
name: {{ .Release.Name }}-galaxykubeman-secrets
Expand All @@ -16,5 +17,4 @@ stringData:
{{ $secentry | indent 8 -}}
{{- end -}}
{{- end }}
---
{{- end -}}

0 comments on commit 00336ba

Please sign in to comment.