Skip to content

Commit

Permalink
Type: timescaledb graceful failing due to missing official docker image
Browse files Browse the repository at this point in the history
This also allows it not to fail when an image is manually provided

Signed-off-by: Itay Grudev <[email protected]>
  • Loading branch information
itay-grudev committed Sep 28, 2023
1 parent 55deafd commit 56a405d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/cluster/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
{{- end -}}

0 comments on commit 56a405d

Please sign in to comment.