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 #101 from Oteemo/ingress-service-customizations
Browse files Browse the repository at this point in the history
Add ingress overrides for name and port
  • Loading branch information
rjkernick authored Apr 27, 2020
2 parents 1629aaa + 642c3a1 commit cd84ad8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/sonarqube/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: sonarqube
description: SonarQube is an open sourced code quality scanning tool
version: 6.0.1
version: 6.1.0
appVersion: 8.2-community
keywords:
- coverage
Expand Down
6 changes: 4 additions & 2 deletions charts/sonarqube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ The following table lists the configurable parameters of the Sonarqube chart and
| `ingress.labels` | Ingress additional labels | `{}` |
| `ingress.hosts[0].name` | Hostname to your SonarQube installation | `sonar.organization.com` |
| `ingress.hosts[0].path` | Path within the URL structure | / |
| `ingress.hosts[0].serviceName` | Optional field to override the default serviceName of a path | None |
| `ingress.hosts[0].servicePort` | Optional field to override the default servicePort of a path | None |
| `ingress.tls` | Ingress secrets for TLS certificates | `[]` |
| `livenessProbe.sonarWebContext` | SonarQube web context for livenessProbe | / |
| `readinessProbe.sonarWebContext` | SonarQube web context for readinessProbe | / |
Expand Down Expand Up @@ -113,9 +115,9 @@ The following table lists the configurable parameters of the Sonarqube chart and
| `sonarqubeFolder` | Directory name of Sonarqube | `/opt/sonarqube` |
| `enableTests` | Flag that allows tests to be excluded from generated yaml | true |

You can also configure values for the PostgreSQL database via the Postgresql [README.md](https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md)
You can also configure values for the PostgreSQL database via the Postgresql [Chart](https://hub.helm.sh/charts/bitnami/postgresql)

For overriding variables see: [Customizing the chart](https://docs.helm.sh/using_helm/#customizing-the-chart-before-installing)
For overriding variables see: [Customizing the chart](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing)

### Use custom `cacerts`

Expand Down
4 changes: 2 additions & 2 deletions charts/sonarqube/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ spec:
paths:
- path: {{ .path}}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
serviceName: {{ default $serviceName .serviceName }}
servicePort: {{ default $servicePort .servicePort }}
{{- end -}}
{{- if .Values.ingress.tls }}
tls:
Expand Down
3 changes: 3 additions & 0 deletions charts/sonarqube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ ingress:
- name: sonar.organization.com
# Different clouds or configurations might need /* as the default path
path: /
# For additional control over serviceName and servicePort
# serviceName: someService
# servicePort: somePort
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
Expand Down

0 comments on commit cd84ad8

Please sign in to comment.