diff --git a/README.md b/README.md index 26fa25e..c05cac3 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,7 @@ Key | Description | Default `mariadb.auth.username` | Database user to create | `""` `mariadb.auth.password` | Password for the user | `""` `ingress.enabled` | Enable use of ingress controllers | `true` +`ingress.tls` | Use dedicated certificates | `true` `ingress.hosts` | OCS hosts to create application URLs | `""` `ingress.annotations` | An array of ingress annotations | `{}` `ingress.basicauth.enabled` | Wether to enable basic auth | `"false"` diff --git a/charts/ocsinventory/templates/ingress.yaml b/charts/ocsinventory/templates/ingress.yaml index 884a4ec..04ca4cf 100644 --- a/charts/ocsinventory/templates/ingress.yaml +++ b/charts/ocsinventory/templates/ingress.yaml @@ -14,7 +14,9 @@ spec: - hosts: {{- range .Values.ingress.hosts }} - {{ . }} - secretName: {{ . }}-tls + {{- if $.Values.ingress.tls }} + secretName: {{ . }}-tls + {{- end}} {{- end}} rules: {{- range .Values.ingress.hosts }} diff --git a/charts/ocsinventory/values.yaml b/charts/ocsinventory/values.yaml index 7360b7f..6a229df 100644 --- a/charts/ocsinventory/values.yaml +++ b/charts/ocsinventory/values.yaml @@ -81,6 +81,7 @@ ingress: labels: {} hosts: - "" + tls: true annotations: kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/force-ssl-redirect: "true"