|
9 | 9 | {{- if not .Values.autoscaling.enabled }} |
10 | 10 | replicas: {{ .Values.replicaCount }} |
11 | 11 | {{- end }} |
| 12 | + revisionHistoryLimit: 10 |
12 | 13 | selector: |
13 | 14 | matchLabels: |
14 | 15 | {{- include "backend.selectorLabels" . | nindent 6 }} |
|
38 | 39 | env: |
39 | 40 | {{- toYaml .Values.application.env | nindent 12 }} |
40 | 41 | {{- end }} |
| 42 | + {{- if .Values.envFrom.enabled }} |
| 43 | + envFrom: |
| 44 | + {{- toYaml .Values.envFrom.envFrom | nindent 12 }} |
| 45 | + {{- end }} |
41 | 46 | {{- if .Values.container }} |
42 | 47 | ports: |
43 | 48 | {{- with .Values.container.ports }} |
|
49 | 54 | {{- if or .Values.configMap.enabled .Values.secret.enabled }} |
50 | 55 | volumeMounts: |
51 | 56 | {{- if and .Values.configMap .Values.configMap.enabled }} |
52 | | - - name: {{ include "backend.fullname" . }} |
| 57 | + - name: {{ .Values.configMap.name }} |
53 | 58 | mountPath: {{ .Values.configMap.mountPath }} |
54 | 59 | readOnly: {{ .Values.configMap.readOnly }} |
55 | 60 | {{- end }} |
|
60 | 65 | readOnly: {{ .Values.secret.readOnly }} |
61 | 66 | {{- end }} |
62 | 67 | {{- end }} |
| 68 | + {{- if and .Values.volumes .Values.volumes.enabled }} |
| 69 | + volumeMounts: |
| 70 | + - name: {{ .Values.volumes.name }} |
| 71 | + mountPath: {{ .Values.volumes.mountPath }} |
| 72 | + {{- end }} |
63 | 73 | {{- if .Values.nodeSelector.enabled -}} |
64 | 74 | {{- with .Values.nodeSelector.select }} |
65 | 75 | nodeSelector: |
|
77 | 87 | {{- if or .Values.configMap.enabled .Values.secret.enabled }} |
78 | 88 | volumes: |
79 | 89 | {{- if and .Values.configMap .Values.configMap.enabled }} |
80 | | - - name: {{ include "backend.fullname" . }} |
| 90 | + - name: {{ .Values.configMap.name }} |
81 | 91 | configMap: |
82 | | - name: {{ include "backend.fullname" . }} |
| 92 | + name: {{ .Values.configMap.name }} |
83 | 93 | {{- end }} |
84 | 94 | {{- if and .Values.secret .Values.secret.enabled }} |
85 | 95 | - name: {{ .Values.secret.name }} |
|
0 commit comments