Skip to content

Commit

Permalink
Merge pull request #13 from samvera-labs/chart-1dot0
Browse files Browse the repository at this point in the history
Bump chart to 1.0
  • Loading branch information
orangewolf authored Jul 5, 2022
2 parents 8bf846e + a1ceb3d commit 4fa62db
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
6 changes: 3 additions & 3 deletions Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ apiVersion: v2
name: fcrepo
description: Fedora Commons Repository 4
type: application
version: 0.8.1
version: 1.0.0
appVersion: 4.7.5
dependencies:
- name: postgresql
version: 9.3.3
repository: https://charts.bitnami.com/bitnami
version: 11.6.12
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
condition: postgresql.enabled
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ maintained with that environment.

In this case, `fcrepo` should be deployed with postgresql explictly disabled, but
externalPostgresql.host or global.postgresql.postgresqlHost set to your upstream value.
externalPostgresql.password and externalPostgresql.username or global.postgresql.postgresqlPassword
and global.postgresql.postgresqlUsername can be used as needed depending on your set up. If both
externalPostgresql.password and globa.postgresql.postgresqlPassword are set, then
externalPostgresql.password and externalPostgresql.username or `global.postgresql.auth.password`
and `global.postgresql.auth.username` can be used as needed depending on your set up. If both
externalPostgresql.password and `global.postgresql.auth.password` are set, then
externalPostgresql.password is used as an override.
This is usually done in the context of a parent chart which provides the postgresql instance, for example:

Expand Down
12 changes: 6 additions & 6 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ Return PostgreSQL username
{{- define "fcrepo.postgresql.username" }}
{{- if and (not .Values.postgresql.enabled) .Values.externalPostgresql.username }}
{{- .Values.externalPostgresql.username }}
{{- else if and (not .Values.postgresql.enabled) .Values.global.postgresql.postgresqlUsername }}
{{- .Values.global.postgresql.postgresqlUsername }}
{{- else if and (not .Values.postgresql.enabled) .Values.global.postgresql.auth.username }}
{{- .Values.global.postgresql.auth.username }}
{{- else }}
{{- .Values.postgresql.postgresqlUsername }}
{{- .Values.postgresql.auth.username }}
{{- end }}
{{- end }}

Expand All @@ -99,10 +99,10 @@ Return PostgreSQL password
{{- define "fcrepo.postgresql.password" }}
{{- if and (not .Values.postgresql.enabled) .Values.externalPostgresql.password }}
{{- .Values.externalPostgresql.password }}
{{- else if and (not .Values.postgresql.enabled) .Values.global.postgresql.postgresqlPassword }}
{{- .Values.global.postgresql.postgresqlPassword }}
{{- else if and (not .Values.postgresql.enabled) .Values.global.postgresql.auth.password }}
{{- .Values.global.postgresql.auth.password }}
{{- else }}
{{- .Values.postgresql.postgresqlPassword }}
{{- .Values.postgresql.auth.password }}
{{- end }}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion templates/configmap-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
data:
DATABASE_NAME: {{ .Values.postgresql.postgresqlDatabase }}
DATABASE_NAME: {{ .Values.postgresql.auth.database }}
DATABASE_USER: {{ include "fcrepo.postgresql.username" . }}
DATABASE_HOST: {{ include "fcrepo.postgresql.host" . }}
9 changes: 5 additions & 4 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ postgresql:
enabled: true
image:
repository: bitnami/postgresql
tag: 12.3.0
postgresqlUsername: fcrepo
postgresqlPassword: fcrepo_pass
postgresqlDatabase: fcrepo
tag: 12.11.0-debian-11-r12
auth:
username: fcrepo
password: fcrepo_pass
database: fcrepo
servicePort: 5432

externalPostgresql: {}
Expand Down

0 comments on commit 4fa62db

Please sign in to comment.