The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
add functionality to mount existing configmap if needed
Const-antineff4040bbe125
diff --git a/deploy/charts/litellm-helm/templates/configmap-litellm.yaml b/deploy/charts/litellm-helm/templates/configmap-litellm.yamlindex 4598054a9d0..cf35917da03 100644--- a/deploy/charts/litellm-helm/templates/configmap-litellm.yaml+++ b/deploy/charts/litellm-helm/templates/configmap-litellm.yaml@@ -1,7 +1,9 @@+{{- if .Values.proxyConfigMap.create }}apiVersion: v1kind: ConfigMapmetadata:name: {{ include "litellm.fullname" . }}-configdata:config.yaml: |-{{ .Values.proxy_config | toYaml | indent 6 }}\ No newline at end of file+{{ .Values.proxy_config | toYaml | indent 6 }}+{{- end }}\ No newline at end of filediff --git a/deploy/charts/litellm-helm/templates/deployment.yaml b/deploy/charts/litellm-helm/templates/deployment.yamlindex b30b8829325..6a5a6e87577 100644--- a/deploy/charts/litellm-helm/templates/deployment.yaml+++ b/deploy/charts/litellm-helm/templates/deployment.yaml@@ -16,7 +16,9 @@ spec:template:metadata:annotations:+ {{- if .Values.proxyConfigMap.create }}checksum/config: {{ include (print $.Template.BasePath "/configmap-litellm.yaml") . | sha256sum }}+ {{- end }}{{- with .Values.podAnnotations }}{{- toYaml . | nindent 8 }}{{- end }}@@ -183,9 +185,13 @@ spec:{{- end }}- name: litellm-configconfigMap:+ {{- if .Values.proxyConfigMap.create }}name: {{ include "litellm.fullname" . }}-config+ {{- else }}+ name: {{ .Values.proxyConfigMap.name }}+ {{- end }}items:- - key: "config.yaml"+ - key: {{ .Values.proxyConfigMap.key | default "config.yaml" }}path: "config.yaml"{{- with .Values.volumes }}{{- toYaml . | nindent 8 }}diff --git a/deploy/charts/litellm-helm/values.yaml b/deploy/charts/litellm-helm/values.yamlindex 0bd95003c10..58d1880cd4c 100644--- a/deploy/charts/litellm-helm/values.yaml+++ b/deploy/charts/litellm-helm/values.yaml@@ -93,6 +93,14 @@ masterkeySecretName: ""# if set, use this secret key for the master key; otherwise, use the default keymasterkeySecretKey: ""+proxyConfigMap:+ # when true, creates a new configmap+ create: true+ # if create is false and name is set, use existing ConfigMap+ # create: false+ # name: ""+ # key: "config.yaml"+# The elements within proxy_config are rendered as config.yaml for the proxy# Examples: https://github.com/BerriAI/litellm/tree/main/litellm/proxy/example_config_yaml# Reference: https://docs.litellm.ai/docs/proxy/configs