Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom ingress labels (Example: for external-dns) #429

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/mattermost-team-edition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ Parameter | Description
`initContainerImage.imagePullPolicy` | Container image pull policy | `IfNotPresent`
`revisionHistoryLimit` | How many old ReplicaSets for Mattermost Deployment you want to retain | `1`
`ingress.enabled` | If `true`, an ingress is created | `false`
`ingress.labels` | Enables labels for ingress | `{}`
`ingress.hosts` | A list of ingress hosts | `[mattermost.example.com]`
`ingress.tls` | A list of [ingress tls](https://kubernetes.io/docs/concepts/services-networking/ingress/#tls) items | `[]`
`mysql.enabled` | Enables deployment of a mysql server | `true`
Expand Down
3 changes: 3 additions & 0 deletions charts/mattermost-team-edition/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "mattermost-team-edition.chart" . }}
{{- with $ingress.labels }}
{{- . | toYaml | nindent 4 }}
{{- end }}
annotations:
{{- if .Values.ingress.tls }}
nginx.ingress.kubernetes.io/ssl-redirect: "true"
Expand Down
1 change: 1 addition & 0 deletions charts/mattermost-team-edition/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ ingress:
enabled: false
className: ""
path: /
labels: {}
annotations: {}
# kubernetes.io/ingress.class: nginx
# certmanager.k8s.io/issuer: your-issuer
Expand Down