Skip to content

Commit

Permalink
[pgadmin4] feat: add possibility to use template-strings inside value…
Browse files Browse the repository at this point in the history
…s.yaml (#232)

* feat: add possibility to use template-strings inside values.yaml
for "extraConfigmapMounts.[].configMap" and "extraSecretMounts.[].secret"
* feat: bump Chart version to 1.19.0
* feat: update README.md

---------

Signed-off-by: pmoscode <[email protected]>
  • Loading branch information
pmoscode authored Dec 18, 2023
1 parent 9b970b2 commit d619d95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/pgadmin4/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: pgAdmin4 is a web based administration tool for PostgreSQL database
name: pgadmin4
version: 1.18.5
version: 1.19.0
appVersion: "7.8"
keywords:
- pgadmin
Expand Down
4 changes: 4 additions & 0 deletions charts/pgadmin4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ The command removes nearly all the Kubernetes components associated with the cha
| `test.resources` | CPU/memory resource requests/limits for test | `{}` |
| `test.securityContext` | Custom [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) for test Pod | `` |

> The values for "extraConfigmapMounts.[].configMap" and "extraSecretMounts.[].secret" can be either a simple string
or a template string.
Then it will be resolved for you.

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example:

```console
Expand Down
4 changes: 2 additions & 2 deletions charts/pgadmin4/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ spec:
{{- range .Values.extraConfigmapMounts }}
- name: {{ .name }}
configMap:
name: {{ .configMap }}
name: {{ tpl (.configMap) $ }}
defaultMode: {{ .defaultMode | default 256 }}
{{- end }}
{{- range .Values.extraSecretMounts }}
- name: {{ .name }}
secret:
secretName: {{ .secret }}
secretName: {{ tpl (.secret) $ }}
defaultMode: {{ .defaultMode | default 256 }}
{{- end }}
{{- if .Values.extraVolumes }}
Expand Down

0 comments on commit d619d95

Please sign in to comment.