[bitnami/discourse] Add hostAliases (#5220)

This commit is contained in:
Javier J. Salmerón-García
2021-01-26 09:51:52 +01:00
committed by GitHub
parent 25e31a0644
commit 5e183af82a
4 changed files with 10 additions and 1 deletions

View File

@@ -35,4 +35,4 @@ sources:
- https://github.com/bitnami/bitnami-docker-discourse
- https://github.com/spinnaker
- https://www.discourse.org/
version: 2.1.4
version: 2.2.0

View File

@@ -76,6 +76,7 @@ The following table lists the configurable parameters of the Discourse chart and
| `serviceAccount.annotations` | Annotations to add to the service account | `{}` |
| `serviceAccount.name` | Name to be used for the service account | `""` |
| `podSecurityContext` | Pod security context specification | `{}` |
| `hostAliases` | Add deployment host aliases | `[]` |
| `persistence.enabled` | Whether to enable persistence based on Persistent Volume Claims | `true` |
| `persistence.storageClass` | PVC Storage Class | `nil` |
| `persistence.existingClaim` | Name of an existing PVC to reuse | `nil` |

View File

@@ -36,6 +36,9 @@ spec:
{{- end }}
spec:
{{- include "discourse.imagePullSecrets" . | nindent 6 }}
{{- if .Values.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.affinity "context" $) | nindent 8 }}
{{- else }}

View File

@@ -49,6 +49,11 @@ imagePullSecrets: []
##
# fullnameOverride:
## Deployment pod host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##
hostAliases: []
discourse:
## Discourse host to create application URLs. The port will be automatilly included.
## ref: https://github.com/bitnami/bitnami-docker-discourse#configuration