Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #264 from sprokhorov/master
Browse files Browse the repository at this point in the history
sonatype-nexus: add custom TLS hosts configuration to ingress
  • Loading branch information
rjkernick authored Mar 9, 2021
2 parents 95dd506 + b6693aa commit ca5b77f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/sonatype-nexus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: sonatype-nexus
version: 4.3.0
version: 4.4.0
appVersion: 3.27.0
description: Sonatype Nexus is an open source repository manager
keywords:
Expand Down
2 changes: 2 additions & 0 deletions charts/sonatype-nexus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,13 @@ The following table lists the configurable parameters of the Nexus chart and the
| `ingress.annotations` | Annotations to enhance ingress configuration | `{}` |
| `ingress.tls.enabled` | Enable TLS | `true` |
| `ingress.tls.secretName` | Name of the secret storing TLS cert, `false` to use the Ingress' default certificate | `nexus-tls` |
| `ingress.tls.hosts` | Custom TLS hosts configuration | `{}` |
| `ingress.path` | Path for ingress rules. GCP users should set to `/*` | `/` |
| `ingressDocker.enabled` | Create an ingress for Docker registry | `false` |
| `ingressDocker.annotations` | Annotations to enhance docker ingress configuration | `{}` |
| `ingressDocker.tls.enabled` | Enable TLS | `true` |
| `ingressDocker.tls.secretName` | Name of the secret storing TLS cert, `false` to use the Ingress' default certificate | `nexus-tls` |
| `ingressDocker.tls.hosts` | Custom TLS hosts configuration | `{}` |
| `ingressDocker.path` | Path for docker ingress rules. GCP users should set to `/*` | `/` |
| `tolerations` | tolerations list | `[]` |
| `config.enabled` | Enable configmap | `false` |
Expand Down
3 changes: 3 additions & 0 deletions charts/sonatype-nexus/templates/ingress-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@ spec:
{{- if .Values.ingressDocker.tls.secretName }}
secretName: {{ .Values.ingressDocker.tls.secretName | quote }}
{{- end }}
{{- with .Values.ingressDocker.tls.hosts }}
{{- toYaml . | nindent 4 }}
{{- end -}}
{{- end -}}
{{- end }}
3 changes: 3 additions & 0 deletions charts/sonatype-nexus/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@ spec:
{{- if .Values.ingress.tls.secretName }}
secretName: {{ .Values.ingress.tls.secretName | quote }}
{{- end }}
{{- with .Values.ingress.tls.hosts }}
{{- toYaml . | nindent 4 }}
{{- end -}}
{{- end -}}
{{- end }}
2 changes: 2 additions & 0 deletions charts/sonatype-nexus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ ingress:
tls:
enabled: true
secretName: nexus-tls
hosts:
# Specify custom rules in addition to or instead of the nexus-proxy rules
rules:
# - host: http://nexus.127.0.0.1.nip.io
Expand All @@ -261,6 +262,7 @@ ingressDocker:
tls:
enabled: true
secretName: nexus-tls
hosts:
# Specify custom rules in addition to or instead of the nexus-proxy rules
rules:
# - host: http://nexus.127.0.0.1.nip.io
Expand Down

0 comments on commit ca5b77f

Please sign in to comment.