Skip to content

Commit

Permalink
fix(base-cluster/deadMansSwitch)!: only setup with baseDomain
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau committed Sep 3, 2024
1 parent 5d4e601 commit 9cfc86b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions charts/base-cluster/ci/deadmansswitch-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ monitoring:
enabled: true
pingKey: PING_KEY
apiKey: API_KEY
global:
baseDomain: example.com
2 changes: 1 addition & 1 deletion charts/base-cluster/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
===
You can access your grafana instance via

{{- if and .Values.certManager.email .Values.monitoring.grafana.ingress.enabled .Values.global.baseDomain }}
{{- if and .Values.certManager.email .Values.monitoring.grafana.ingress.enabled }}
{{- printf "https://%s" (include "base-cluster.grafana.host" $) | nindent 2 }}
{{- else }}
{{- printf "$ kubectl -n monitoring port-forward svc/kube-prometheus-stack-grafana 3000:http-web" | nindent 2 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
}
checkName={{- include "base-cluster.deadMansSwitch.checkName" . | quote }}
{{- if and .Values.monitoring.prometheus.enabled .Values.monitoring.deadMansSwitch.enabled }}
{{- if .Values.monitoring.prometheus.enabled }}
createCheck "$checkName-monitoring"
{{- end }}
createCheck "$checkName-scheduling"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- if .Values.monitoring.deadMansSwitch.enabled -}}
{{- if not .Values.global.baseDomain -}}
{{- fail "You need to provide a `.Values.global.baseDomain` when enabling the dead mans switch" -}}
{{- end -}}
{{- end -}}

0 comments on commit 9cfc86b

Please sign in to comment.