From b14d105478a830e5554f7a877a9635241b4dd695 Mon Sep 17 00:00:00 2001 From: Alexey Lazarev Date: Thu, 16 Jun 2022 17:52:42 +0400 Subject: [PATCH] fix(helm): add enabled logic for ingress and issuers --- helm/oncall/templates/cert-issuer.yaml | 2 +- helm/oncall/templates/ingress-regular.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 }}