Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions helm/kagent/templates/modelconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ spec:
defaultHeaders:
{{- toYaml $model.defaultHeaders | nindent 4 }}
{{- end }}
{{- if $model.tls }}
tls:
{{- toYaml $model.tls | nindent 4 }}
{{- end }}
{{- if $model.config }}
{{ $dot.Values.providers.default }}:
{{- toYaml $model.config | nindent 4 }}
Expand Down
25 changes: 24 additions & 1 deletion helm/kagent/tests/modelconfig_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,29 @@ tests:
path: spec.model
value: "gpt-4-turbo"

- it: should render provider tls configuration
set:
providers:
openAI:
tls:
disableVerify: true
caCertSecretRef: custom-ca
caCertSecretKey: ca.crt
disableSystemCAs: true
asserts:
- equal:
path: spec.tls.disableVerify
value: true
- equal:
path: spec.tls.caCertSecretRef
value: custom-ca
- equal:
path: spec.tls.caCertSecretKey
value: ca.crt
- equal:
path: spec.tls.disableSystemCAs
value: true

- it: should have correct labels
asserts:
- equal:
Expand All @@ -113,4 +136,4 @@ tests:
asserts:
- equal:
path: metadata.namespace
value: custom-namespace
value: custom-namespace
7 changes: 7 additions & 0 deletions helm/kagent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,13 @@ providers:
apiKeySecretRef: kagent-openai
apiKeySecretKey: OPENAI_API_KEY
# apiKey: ""
# Optional TLS settings for the generated ModelConfig.
# This same block can be used under any provider.
# tls:
# disableVerify: false
# caCertSecretRef: ""
# caCertSecretKey: ""
# disableSystemCAs: false
ollama:
provider: Ollama
model: "llama3.2"
Expand Down
Loading