diff --git a/helm/oncall/templates/cert-issuer.yaml b/helm/oncall/templates/cert-issuer.yaml index 60c2b690..8b1716f3 100644 --- a/helm/oncall/templates/cert-issuer.yaml +++ b/helm/oncall/templates/cert-issuer.yaml @@ -1,4 +1,4 @@ -{{- if (index .Values "cert-manager") }} +{{- if (index .Values "cert-manager").enabled }} apiVersion: cert-manager.io/v1 kind: Issuer metadata: diff --git a/helm/oncall/templates/ingress-regular.yaml b/helm/oncall/templates/ingress-regular.yaml index 31c4e367..dc2f82c7 100644 --- a/helm/oncall/templates/ingress-regular.yaml +++ b/helm/oncall/templates/ingress-regular.yaml @@ -38,6 +38,7 @@ spec: name: {{ include "oncall.engine.fullname" . }} port: number: 8080 + {{ if .Values.grafana.enabled }} - path: /grafana pathType: Prefix backend: @@ -45,4 +46,5 @@ spec: name: {{ include "oncall.grafana.fullname" . }} port: number: 80 + {{- end }} {{- end }}