Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML document separators #77

Open
wants to merge 1 commit into
base: anvil
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 -}}
Loading