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 Nov 26, 2024
1 parent cc39f4a commit 4fa9759
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions charts/base-cluster/ci/artifacthub-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ storage:
enabled: true
global:
clusterName: test
baseDomain: example.com
serviceLevelAgreement: None
monitoring:
grafana:
Expand Down
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 4fa9759

Please sign in to comment.