Add chart flowise/6.0.0

This commit is contained in:
wbsong111
2025-08-12 12:29:35 +09:00
parent 5f3614c3ce
commit 4f08cb4da0
183 changed files with 20405 additions and 1432 deletions
+96 -10
View File
@@ -34,21 +34,44 @@ Create chart name and version as used by the chart label.
{{/*
Common labels
*/}}
{{- define "flowise.labels" -}}
{{- define "flowise.commonLabels" -}}
helm.sh/chart: {{ include "flowise.chart" . }}
{{ include "flowise.selectorLabels" . }}
{{ include "flowise.commonSelectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{/*
Common selector labels
*/}}
{{- define "flowise.commonSelectorLabels" -}}
app.kubernetes.io/name: {{ include "flowise.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{{/*
Component labels
*/}}
{{- define "flowise.componentLabels" -}}
app.kubernetes.io/component: flowise
{{- end -}}
{{/*
Labels
*/}}
{{- define "flowise.labels" -}}
{{ include "flowise.commonLabels" . }}
{{ include "flowise.componentLabels" . }}
{{- end -}}
{{/*
Selector labels
*/}}
{{- define "flowise.selectorLabels" -}}
app.kubernetes.io/name: {{ include "flowise.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{ include "flowise.commonSelectorLabels" . }}
{{ include "flowise.componentLabels" . }}
{{- end -}}
{{/*
@@ -74,13 +97,13 @@ Create the name of the secret to use
{{- end -}}
{{/*
Key in Secret that contains password
Key in Secret that contains encryption key
*/}}
{{- define "flowise.secretKeyPassword" -}}
{{- define "flowise.secretKeyEncryptionKey" -}}
{{- if .Values.existingSecret -}}
{{ .Values.existingSecretKeyPassword }}
{{ .Values.existingSecretKeyEncryptionKey }}
{{- else -}}
password
encryption-key
{{- end -}}
{{- end -}}
@@ -231,8 +254,8 @@ PostgreSQL user
PostgreSQL secret name
*/}}
{{- define "flowise.postgresql.secretName" -}}
{{- if .Values.postgresql.existingSecret -}}
{{ .Values.postgresql.existingSecret }}
{{- if .Values.postgresql.auth.existingSecret -}}
{{ .Values.postgresql.auth.existingSecret }}
{{- else if .Values.externalPostgresql.existingSecret -}}
{{ .Values.externalPostgresql.existingSecret }}
{{- else -}}
@@ -261,3 +284,66 @@ PostgreSQL database
{{ .Values.externalPostgresql.database }}
{{- end -}}
{{- end -}}
{{/*
Redis fully qualified app name
*/}}
{{- define "flowise.redis.fullname" -}}
{{- if .Values.redis.fullnameOverride -}}
{{- .Values.redis.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default "redis" .Values.redis.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{/*
Redis host
*/}}
{{- define "flowise.redis.host" -}}
{{- if .Values.redis.enabled -}}
{{- if .Values.redis.fullnameOverride -}}
{{- printf "%s-%s" .Values.redis.fullnameOverride "master" | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default "redis" .Values.redis.nameOverride -}}
{{- printf "%s-%s-%s" .Release.Name $name "master" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- else -}}
{{ .Values.externalRedis.host }}
{{- end -}}
{{- end -}}
{{/*
Redis port
*/}}
{{- define "flowise.redis.port" -}}
{{- if .Values.redis.enabled -}}
{{ .Values.redis.master.service.ports.redis }}
{{- else -}}
{{ .Values.externalRedis.port }}
{{- end -}}
{{- end -}}
{{/*
Redis secret name
*/}}
{{- define "flowise.redis.secretName" -}}
{{- if .Values.redis.auth.existingSecret -}}
{{ .Values.redis.auth.existingSecret }}
{{- else if .Values.externalRedis.existingSecret -}}
{{ .Values.externalRedis.existingSecret }}
{{- else -}}
{{ include "flowise.redis.fullname" . }}
{{- end -}}
{{- end -}}
{{/*
Key in Secret that contains Redis password
*/}}
{{- define "flowise.redis.secretKeyPassword" -}}
{{- if .Values.externalRedis.existingSecret -}}
{{ .Values.externalRedis.existingSecretKeyPassword }}
{{- else -}}
redis-password
{{- end -}}
{{- end -}}