Skip to content

Commit

Permalink
chore: rename initImages values
Browse files Browse the repository at this point in the history
Signed-off-by: Guilhem Barthés <[email protected]>
  • Loading branch information
guilhem-barthes committed Dec 17, 2024
1 parent ff199b9 commit ddd0bc1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions charts/orchestrator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ See Bitnami documentation: https://bitnami.com/stack/postgresql/helm

### Images

| Name | Description | Value |
| -------------------------------------- | ----------------------------------------- | ----------- |
| `initImages.initPostgresql.repository` | PostgreSQL image | `postgres` |
| `initImages.initPostgresql.tag` | PostgreSQL tag | `17` |
| `initImages.initPostgresql.registry` | The registry to pull the PostgreSQL image | `docker.io` |
| Name | Description | Value |
| ---------------------------------- | ----------------------------------------- | ----------- |
| `initImages.postgresql.repository` | PostgreSQL image | `postgres` |
| `initImages.postgresql.tag` | PostgreSQL tag | `17` |
| `initImages.postgresql.registry` | The registry to pull the PostgreSQL image | `docker.io` |


## Usage
Expand Down
2 changes: 1 addition & 1 deletion charts/orchestrator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Disable SSL if using the integrated Postgres, otherwise leave users with the opt

{{- define "substra-orc.waitPostgresqlInitContainer" -}}
- name: wait-postgresql
image: {{ include "substra-orc.images.name" $.Values.images.initPostgresql }}
image: {{ include "substra-orc.images.name" (dict "img" $.Values.initImages.postgresql "defaultTag" "latest") }}
command: ['sh', '-c', 'until pg_isready --host={{ template "substra-orc.database.host" . }} --port={{ .Values.database.port }}; do echo "Waiting for postgresql service"; sleep 2; done;']
securityContext:
allowPrivilegeEscalation: false
Expand Down
8 changes: 4 additions & 4 deletions charts/orchestrator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,10 @@ migrations:
## @section Images
##
initImages:
initPostgresql:
## @param initImages.initPostgresql.repository PostgreSQL image
## @param initImages.initPostgresql.tag PostgreSQL tag
## @param initImages.initPostgresql.registry The registry to pull the PostgreSQL image
postgresql:
## @param initImages.postgresql.repository PostgreSQL image
## @param initImages.postgresql.tag PostgreSQL tag
## @param initImages.postgresql.registry The registry to pull the PostgreSQL image
registry: docker.io
repository: postgres
tag: "17"

0 comments on commit ddd0bc1

Please sign in to comment.