Files
gograpple/the-hook/deployment-patch.yaml

30 lines
755 B
YAML

spec:
template:
metadata:
labels:
{{ .Label }}: "true"
spec:
containers:
- name: {{ .Container }}
image: {{ .Image }}
command:
args:
livenessProbe:
readinessProbe:
volumeMounts:
- name: patch-configmap
mountPath: {{ .ConfigMapMount }}
{{ range $i, $mount := .Mounts }}
- name: "patch-mount-{{ $i }}"
mountPath: {{ $mount.MountPath }}
{{ end }}
volumes:
- name: patch-configmap
configMap:
name: {{ .Deployment }}
{{ range $i, $mount := .Mounts }}
- name: "patch-mount-{{ $i }}"
hostPath:
path: {{ $mount.HostPath }}
{{ end }}