Skip to content

Commit

Permalink
If an admin option is not specified, default it to match the correspo…
Browse files Browse the repository at this point in the history
…nding host option
  • Loading branch information
ianroberts committed Mar 2, 2023
1 parent d15eedc commit 43fe15a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gate-teamware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Things you will commonly need to override include:
- `name` - host organisation/individual's name.
- `address` - physical address.
- `contact` - a means of contact, supports HTML for e.g. email or contact form links.
- `admin` - the individual or organisation responsible for managing users of the teamware instance.
- `admin` - the individual or organisation responsible for managing users of the teamware instance, if this is not the same as the `host`.
- `name` - admin organisation/individual's name.
- `address` - physical address.
- `contact` - a means of contact, supports HTML for e.g. email or contact form links.
Expand Down
6 changes: 3 additions & 3 deletions gate-teamware/templates/deployment-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ spec:
- name: PP_HOST_CONTACT
value: {{ . | quote }}
{{- end }}
{{- with .admin.name }}
{{- with (coalesce .admin.name .host.name) }}
- name: PP_ADMIN_NAME
value: {{ . | quote }}
{{- end }}
{{- with .admin.address }}
{{- with (coalesce .admin.address .host.address) }}
- name: PP_ADMIN_ADDRESS
value: {{ . | quote }}
{{- end }}
{{- with .admin.contact }}
{{- with (coalesce .admin.contact .host.contact) }}
- name: PP_ADMIN_CONTACT
value: {{ . | quote }}
{{- end }}{{/* with .admin.contact */}}
Expand Down
7 changes: 6 additions & 1 deletion gate-teamware/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,20 @@ email:
privacyPolicy:
# Contact details of the host and administrator of the teamware instance
host:
# Name of the host
# Name of the organization that hosts this teamware instance
name: ""
# Host's physical address
address: ""
# A method of contacting the host, field supports HTML for e.g. linking to a form
contact: ""
admin:
# Name of the organization that is responsible for administering this
# teamware instance, if not the same as the host
name: ""
# Administrator's physical address, if not the same as the host
address: ""
# A method of contacting the administrator, if not the same as the host. This
# field supports HTML.
contact: ""

# Database settings - see the bitnami postgresql chart documentation for full
Expand Down

0 comments on commit 43fe15a

Please sign in to comment.