Fixed indentation issue in the extraEnvVars field, preserved the serverDefinitions template, corrected a typo in README.md, and increased resource allocations in the Helm chart.
parent
986ba41ba9
commit
d9b3f950ad
|
|
@ -34,7 +34,7 @@ The chart should dump its version and appVersion in the Chart.yaml file every re
|
||||||
| `preferences.enabled` | Whether to mount preferences.json | `false` |
|
| `preferences.enabled` | Whether to mount preferences.json | `false` |
|
||||||
| `preferences.data` | Preferences to load | `{}` |
|
| `preferences.data` | Preferences to load | `{}` |
|
||||||
| `resources.*` | Allocated requests and limits resources | `{"requests": {...}, "limits": {...}}` |
|
| `resources.*` | Allocated requests and limits resources | `{"requests": {...}, "limits": {...}}` |
|
||||||
| `persistence.enabled` | PVC resource creation | `false` |
|
| `persistence.enabled` | PVC resource creation | `true` |
|
||||||
| `service.type` | Service type | `"ClusterIP"` |
|
| `service.type` | Service type | `"ClusterIP"` |
|
||||||
| `service.loadBalancerIP` | Load balancer IP (Only if service.type is LoadBalancer) | `""` |
|
| `service.loadBalancerIP` | Load balancer IP (Only if service.type is LoadBalancer) | `""` |
|
||||||
| `ingress.enabled` | Ingress resource creation | `false` |
|
| `ingress.enabled` | Ingress resource creation | `false` |
|
||||||
|
|
|
||||||
|
|
@ -26,3 +26,24 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $securityContext | toYaml -}}
|
{{- $securityContext | toYaml -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "tpl.preserve.variable" -}}
|
||||||
|
{{- $obj := . }}
|
||||||
|
{{- if kindIs "map" $obj }}
|
||||||
|
{{- range $k, $v := $obj }}
|
||||||
|
{{- if kindIs "string" $v }}
|
||||||
|
{{- if regexMatch "^[0-9]+$" $v }}
|
||||||
|
{{- $_ := set $obj $k (atoi $v) }}
|
||||||
|
{{- else if regexMatch "(?i)^(true|false)$" $v }}
|
||||||
|
{{- $_ := set $obj $k (eq (lower $v) "true") }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
{{- include "tpl.preserve.variable" $v }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else if kindIs "slice" $obj }}
|
||||||
|
{{- range $i, $v := $obj }}
|
||||||
|
{{- include "tpl.preserve.variable" $v }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
@ -10,5 +10,7 @@ metadata:
|
||||||
annotations: {{ . | toYaml | nindent 4 }}
|
annotations: {{ . | toYaml | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
data:
|
data:
|
||||||
servers.json: | {{ tpl (dict "Servers" .Values.serverDefinitions.data | toYaml) . | fromYaml | toPrettyJson | nindent 4 }}
|
{{- $variableToPreserveTPL := tpl (dict "Servers" .Values.serverDefinitions.data | toYaml) . | fromYaml }}
|
||||||
|
{{- include "tpl.preserve.variable" $variableToPreserveTPL }}
|
||||||
|
servers.json: | {{ $variableToPreserveTPL | toYaml | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
@ -117,7 +117,7 @@ spec:
|
||||||
- name: PGADMIN_DISABLE_POSTFIX
|
- name: PGADMIN_DISABLE_POSTFIX
|
||||||
value: {{ .Values.disablePostfix | quote }}
|
value: {{ .Values.disablePostfix | quote }}
|
||||||
{{- with .Values.extraEnvVars }}
|
{{- with .Values.extraEnvVars }}
|
||||||
{{- tpl (. | toYaml) $ | nindent 14 }}
|
{{- tpl (. | toYaml) $ | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/pgadmin
|
- mountPath: /var/lib/pgadmin
|
||||||
|
|
|
||||||
|
|
@ -71,11 +71,11 @@ preferences:
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 500m
|
||||||
memory: 512Mi
|
memory: 1Gi
|
||||||
limits:
|
limits:
|
||||||
cpu: 250m
|
cpu: 500m
|
||||||
memory: 512Mi
|
memory: 1Gi
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
@ -152,4 +152,5 @@ containerSecurityContext:
|
||||||
appArmorProfile:
|
appArmorProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
windowsOptions:
|
windowsOptions:
|
||||||
|
|
||||||
hostProcess: false
|
hostProcess: false
|
||||||
Loading…
Reference in New Issue