fix ordering of comparision operator

This commit is contained in:
2024-04-18 01:39:33 -06:00
parent e79af169b9
commit a2b0cdd5b6
2 changed files with 2 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: postgres-cluster
version: 2.3.3
version: 2.3.4
description: Chart for cloudnative-pg cluster
keywords:
- database

View File

@@ -26,8 +26,7 @@ bootstrap:
import:
type: {{ .Values.replica.importType }}
databases:
{{ $length := len .Values.replica.importDatabases | int }}
{{- if and ($length gt 1) (.Values.replica.importType eq "microservice") }}
{{- if and (gt (len .Values.replica.importDatabases) 1) (eq .Values.replica.importType "microservice") }}
{{ fail "Too many databases in import type of microservice!" }}
{{- else}}
{{- with .Values.replica.importDatabases }}