From 56a405df37a35d2e61809c87e49d6fdbf3e6f663 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Thu, 28 Sep 2023 21:05:30 +0300 Subject: [PATCH] Type: timescaledb graceful failing due to missing official docker image This also allows it not to fail when an image is manually provided Signed-off-by: Itay Grudev --- charts/cluster/templates/_helpers.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/cluster/templates/_helpers.tpl b/charts/cluster/templates/_helpers.tpl index 61e773dcd..b00846d60 100644 --- a/charts/cluster/templates/_helpers.tpl +++ b/charts/cluster/templates/_helpers.tpl @@ -61,7 +61,9 @@ If a custom imageName is available, use it, otherwise use the defaults based on {{- "ghcr.io/cloudnative-pg/postgresql:15.2" -}} {{- else if eq .Values.type "postgis" -}} {{- "ghcr.io/cloudnative-pg/postgis:14" -}} + {{- else if eq .Values.type "timescaledb" -}} + {{ fail "You need to provide your own cluster.imageName as an official timescaledb image doesn't exist yet." }} {{- else -}} {{ fail "Invalid cluster type!" }} {{- end }} -{{- end -}} \ No newline at end of file +{{- end -}}