Files
dify/charts/weaviate/templates/weaviateSecretCohere.yaml

13 lines
373 B
YAML

{{ if and (index .Values "modules" "text2vec-cohere" "enabled") (index .Values "modules" "text2vec-cohere" "apiKey") }}
apiVersion: v1
kind: Secret
metadata:
name: weaviate-cohere
labels:
app.kubernetes.io/name: weaviate
app.kubernetes.io/managed-by: helm
type: Opaque
data:
apiKey: {{ index .Values "modules" "text2vec-cohere" "apiKey" | b64enc }}
{{ end }}