diff --git a/charts/compose-app/templates/_helpers/ingress.tpl b/charts/compose-app/templates/_helpers/ingress.tpl index a054029..82739f5 100644 --- a/charts/compose-app/templates/_helpers/ingress.tpl +++ b/charts/compose-app/templates/_helpers/ingress.tpl @@ -13,6 +13,7 @@ # useSecondaryDomain: bool = False = {{ .useSecondaryDomain }} # useDirectPrefix: bool = False = {{ .useDirectPrefix }} # widget: bool = False = {{ .widget | toJson }} +# disableExternalIngress: bool = False = {{ .disableExternalIngress | toJson }} # @@ -27,6 +28,7 @@ {{- $_ := set . "domain" $domain -}} +{{ if (not .disableExternalIngress) }} # .domain = {{ .domain }} # .prefix = {{ .prefix }} {{ if .global.dns.tls.enabled }} @@ -79,6 +81,7 @@ spec: hosts: - "{{.prefix}}{{ $domain }}" {{ end }} +{{ end }} --- apiVersion: networking.k8s.io/v1 kind: Ingress