fix: Add more bangs and whistles to puller

This commit is contained in:
Guilhem Lavaux 2024-11-18 10:15:00 +01:00
parent a2479976e6
commit f25565dff5
3 changed files with 37 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# Chart.yaml # Chart.yaml
apiVersion: v2 apiVersion: v2
name: basic-app name: basic-app
PullName: basic-app-puller
description: A basic Helm chart for Kubernetes description: A basic Helm chart for Kubernetes
type: application type: application
version: 0.1.0 version: 0.1.0

View File

@ -55,13 +55,42 @@ spec:
{{- end }} {{- end }}
- name: {{ .Chart.PullName }} - name: {{ .Chart.PullName }}
image: "{{ .Values.puller.image.repository }}:{{ .Values.puller.image.tag }}" image: "{{ .Values.puller.image.repository }}:{{ .Values.puller.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.puller.image.pullPolicy }}
ports: ports:
- containerPort: 80 - containerPort: 80
protocol: TCP protocol: TCP
volumeMounts: volumeMounts:
- name: data - name: data
mountPath: /data mountPath: /data
env:
{{- with .Values.env.plain }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- range .Values.env.configMapKeys }}
- name: {{ .name }}
valueFrom:
configMapKeyRef:
name: {{ .configMapName }}
key: {{ .key }}
{{- end }}
{{- range .Values.env.secretKeys }}
- name: {{ .name }}
valueFrom:
secretKeyRef:
name: {{ .secretName }}
key: {{ .key }}
{{- end }}
envFrom:
{{- range .Values.env.configMapRefs }}
- configMapRef:
name: {{ .name }}
optional: {{ .optional | default false }}
{{- end }}
{{- range .Values.env.secretRefs }}
- secretRef:
name: {{ .name }}
optional: {{ .optional | default false }}
{{- end }}
volumes: volumes:
- name: data - name: data
persistentVolumeClaim: persistentVolumeClaim:

View File

@ -5,6 +5,12 @@ image:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
tag: "latest" tag: "latest"
puller:
image:
repository: nginx
pullPolicy: IfNotPresent
tag: "latest"
service: service:
type: ClusterIP type: ClusterIP
port: 80 port: 80