From 2e415cd44884a26752e94ec81fcf40e47d821ddb Mon Sep 17 00:00:00 2001 From: Wojciech Galanciak Date: Mon, 30 Jun 2025 14:41:06 +0200 Subject: [PATCH] support automatic configuration of the LLM integration if AI is enabled --- charts/intel/templates/deployment.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/charts/intel/templates/deployment.yaml b/charts/intel/templates/deployment.yaml index 121e800..656a21c 100644 --- a/charts/intel/templates/deployment.yaml +++ b/charts/intel/templates/deployment.yaml @@ -78,6 +78,22 @@ spec: key: {{ .Values.java.customCacerts.trustStorePasswordKey }} optional: true {{- end }} + {{- if .Values.ai.enabled }} + - name: CT_HQ_OLLAMA_AI_URL + value: {{ if eq .Values.ai.mode "bundled" }}"http://localhost:8000"{{ else }}"{{ .Values.ai.url | quote }}"{{ end }} + - name: CT_HQ_OLLAMA_AI_MODEL_NAME + value: {{ .Values.ai.modelName | default "gemma3:1b" | quote }} + - name: CT_HQ_OLLAMA_AI_API_KEY + valueFrom: + secretKeyRef: + name: {{- if and (eq .Values.ai.mode "external") (not .Values.ai.externalSecret.create) }} + {{ .Values.ai.externalSecret.name }} + {{- else }} + {{ .Values.ai.externalSecret.name | default (printf "%s-ollama-api" .Release.Name) }} + {{- end }} + key: apiKey + {{- end }} + volumeMounts: - name: properties-volume