5a558eb09e
TypeScript SDK Compatibility V1.x E2E Tests / Select Node version matrix (push) Has been cancelled
TypeScript SDK Compatibility V1.x E2E Tests / TypeScript SDK Compatibility V1.x E2E Tests Node ${{matrix.node_version}} (push) Has been cancelled
TypeScript SDK E2E Tests / TypeScript SDK E2E Tests Node ${{matrix.node_version}} (push) Has been cancelled
Opik Optimizer - E2E Tests / build-opik (push) Has been cancelled
TypeScript SDK Compatibility V1.x E2E Tests / build-opik (push) Has been cancelled
Python SDK E2E Tests / Select Python version matrix (push) Has been cancelled
Python SDK E2E Tests / Python SDK E2E Tests ${{matrix.python_version}} (push) Has been cancelled
Python SDK E2E Tests / build-opik (push) Has been cancelled
Python SDK Compatibility V1.x E2E Tests / Select Python version matrix (push) Has been cancelled
Python SDK Compatibility V1.x E2E Tests / Python SDK Compatibility V1.x E2E Tests ${{matrix.python_version}} (push) Has been cancelled
Python SDK Compatibility V1.x E2E Tests / build-opik (push) Has been cancelled
TypeScript SDK E2E Tests / Select Node version matrix (push) Has been cancelled
TypeScript SDK E2E Tests / build-opik (push) Has been cancelled
Opik Optimizer - E2E Tests / Opik Optimizer E2E Tests Python ${{matrix.python_version}} (push) Has been cancelled
Opik Optimizer - E2E Tests / Opik Optimizer Integration Smoke Tests (push) Has been cancelled
🐙 Code Quality / detect (push) Has been cancelled
🐙 Code Quality / lint (${{ matrix.leg.name }}) (push) Has been cancelled
🐙 Code Quality / summary (push) Has been cancelled
TypeScript SDK Library Integration Tests / Check Secrets (push) Has been cancelled
TypeScript SDK Library Integration Tests / opik-vercel (Vercel AI SDK / eve) (push) Has been cancelled
SDK Library Integration Tests Runner / Check Secrets (push) Has been cancelled
SDK Library Integration Tests Runner / Missed OpenAI API Key Warning (push) Has been cancelled
SDK Library Integration Tests Runner / Build (push) Has been cancelled
SDK Library Integration Tests Runner / openai_tests (push) Has been cancelled
SDK Library Integration Tests Runner / langchain_tests (push) Has been cancelled
SDK Library Integration Tests Runner / langchain_legacy_tests (push) Has been cancelled
SDK Library Integration Tests Runner / llama_index_tests (push) Has been cancelled
SDK Library Integration Tests Runner / anthropic_tests (push) Has been cancelled
SDK Library Integration Tests Runner / mistral_tests (push) Has been cancelled
SDK Library Integration Tests Runner / groq_tests (push) Has been cancelled
SDK Library Integration Tests Runner / aisuite_tests (push) Has been cancelled
SDK Library Integration Tests Runner / haystack_tests (push) Has been cancelled
SDK Library Integration Tests Runner / dspy_tests (push) Has been cancelled
SDK Library Integration Tests Runner / crewai_v0_tests (push) Has been cancelled
SDK Library Integration Tests Runner / crewai_v1_tests (push) Has been cancelled
SDK Library Integration Tests Runner / genai_tests (push) Has been cancelled
SDK Library Integration Tests Runner / adk_tests (push) Has been cancelled
SDK Library Integration Tests Runner / adk_legacy_1_3_0_tests (push) Has been cancelled
SDK Library Integration Tests Runner / evaluation_metrics_tests (push) Has been cancelled
SDK Library Integration Tests Runner / bedrock_tests (push) Has been cancelled
SDK Library Integration Tests Runner / litellm_tests (push) Has been cancelled
SDK Library Integration Tests Runner / harbor_tests (push) Has been cancelled
SDK Library Integration Tests Runner / Slack Notification (push) Has been cancelled
Lint Opik Helm Chart / render-equality (push) Has been cancelled
Opik Optimizer - Unit Tests / Opik Optimizer Unit Tests Python ${{matrix.python_version}} (push) Has been cancelled
Python BE E2E Tests / Python BE E2E (push) Has been cancelled
Python Backend Tests / run-python-backend-tests (push) Has been cancelled
Python SDK Unit Tests / Python SDK Unit Tests ${{matrix.python_version}} (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
SDK E2E Libraries Integration Tests / Check Secrets (push) Has been cancelled
SDK E2E Libraries Integration Tests / Missed OpenAI API Key Warning (push) Has been cancelled
SDK E2E Libraries Integration Tests / build-opik (push) Has been cancelled
SDK E2E Libraries Integration Tests / E2E Lib Integration Python ${{matrix.python_version}} (push) Has been cancelled
TypeScript SDK Integration Build & Publish / build-and-publish (opik-gemini) (push) Has been cancelled
TypeScript SDK Integration Build & Publish / build-and-publish (opik-langchain) (push) Has been cancelled
TypeScript SDK Integration Build & Publish / build-and-publish (opik-openai) (push) Has been cancelled
TypeScript SDK Integration Build & Publish / build-and-publish (opik-otel) (push) Has been cancelled
TypeScript SDK Integration Build & Publish / build-and-publish (opik-vercel) (push) Has been cancelled
TypeScript SDK Build & Publish / build-and-publish (push) Has been cancelled
TypeScript SDK Unit Tests / Test on Node ${{ matrix.node-version }} (push) Has been cancelled
Backend Tests / discover-tests (push) Has been cancelled
Backend Tests / ${{ matrix.name }} (push) Has been cancelled
Build and Publish SDK / build-and-publish (push) Has been cancelled
Build Opik Docker Images / set-version (push) Has been cancelled
Build Opik Docker Images / build-backend (push) Has been cancelled
Build Opik Docker Images / build-sandbox-executor-python (push) Has been cancelled
Build Opik Docker Images / build-python-backend (push) Has been cancelled
Build Opik Docker Images / build-frontend (push) Has been cancelled
Build Opik Docker Images / create-git-tag (push) Has been cancelled
ClickHouse Migration Cluster Check / validate-clickhouse-migrations (push) Has been cancelled
Docs - Publish / run (push) Has been cancelled
E2E Tests - Post Merge (v2) / 🧪 E2E v2 Tests (${{ github.event.inputs.tier || 't1' }}) (push) Has been cancelled
E2E Tests - Post Merge (v2) / 📢 Slack Notification (push) Has been cancelled
Frontend Unit Tests / Test on Node 20 (push) Has been cancelled
Guardrails E2E Tests / Select Python version matrix (push) Has been cancelled
Guardrails E2E Tests / Guardrails E2E Tests ${{matrix.python_version}} (push) Has been cancelled
Guardrails E2E Tests / 📢 Slack Notification (push) Has been cancelled
Guardrails Backend Unit Tests / Guardrails Backend Unit Tests (push) Has been cancelled
Guardrails Backend Unit Tests / 📢 Slack Notification (push) Has been cancelled
Lint Opik Helm Chart / lint-helm-chart (Helm v3.21.0) (push) Has been cancelled
Lint Opik Helm Chart / lint-helm-chart (Helm v4.2.0) (push) Has been cancelled
Lint Opik Helm Chart / unittest-helm-chart (push) Has been cancelled
280 lines
12 KiB
YAML
280 lines
12 KiB
YAML
{{- range $key, $value := .Values.component }}
|
|
{{- if $value.enabled }}
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "opik.name" $ }}-{{ $key | lower }}
|
|
labels:
|
|
{{- include "opik.labels" $ | nindent 4 }}
|
|
component: {{ include "opik.name" $ }}-{{ $key | lower }}
|
|
{{- with $.Values.commonLabels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with $value.annotations }}
|
|
annotations: {{ . | toYaml | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if not $value.autoscaling.enabled }}
|
|
replicas: {{ $value.replicaCount }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "opik.labels" $ | nindent 6 }}
|
|
component: {{ include "opik.name" $ }}-{{ $key | lower }}
|
|
template:
|
|
metadata:
|
|
{{- with $.Values.podAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "opik.labels" $ | nindent 8 }}
|
|
component: {{ include "opik.name" $ }}-{{ $key | lower }}
|
|
{{- with $.Values.commonLabels }}
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
spec:
|
|
serviceAccountName: {{ include "service.serviceAccountName" ( merge . (dict "serviceName" $key ) ) }}
|
|
{{- with $.Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with $value.podSecurityContext }}
|
|
securityContext:
|
|
{{- toYaml . | nindent 10 }}
|
|
{{- end }}
|
|
initContainers:
|
|
{{- if and $value.usesJavaTrustStore (or $.Values.caCerts.additionalCACerts $.Values.caCerts.existingAdditionalCACertsRef) (not $.Values.caCerts.overwriteJavaCATrustStore.enabled) }}
|
|
- name: ca-cert-injection
|
|
image: "{{ $.Values.registry }}/{{ $value.image.repository }}:{{ default $.Chart.AppVersion $value.image.tag }}"
|
|
imagePullPolicy: {{ $value.image.pullPolicy }}
|
|
securityContext:
|
|
{{- toYaml $value.securityContext | nindent 12 }}
|
|
command:
|
|
- /bin/bash
|
|
args:
|
|
- -exc
|
|
- |
|
|
TRUSTSTORE_PATH="/emptydir/cacerts"
|
|
CERTS_DIR="/opt/opik/custom-ca-certs"
|
|
|
|
touch $TRUSTSTORE_PATH
|
|
cat /etc/pki/ca-trust/extracted/java/cacerts > $TRUSTSTORE_PATH
|
|
|
|
# Ensure the truststore exists
|
|
if [[ ! -f "$TRUSTSTORE_PATH" ]]
|
|
then
|
|
echo "Truststore not found at $TRUSTSTORE_PATH"
|
|
exit 1
|
|
fi
|
|
# Handle certificates from the CERTS_DIR
|
|
if [[ -d "$CERTS_DIR" ]]
|
|
then
|
|
for CERT in "$CERTS_DIR"/*.pem
|
|
do
|
|
if [[ -f "$CERT" ]]
|
|
then
|
|
ALIAS=$(basename "$CERT" .pem)
|
|
$JAVA_HOME/bin/keytool -import -trustcacerts -file "$CERT" \
|
|
-alias "$ALIAS" -keystore "$TRUSTSTORE_PATH" \
|
|
-storepass changeit -noprompt
|
|
echo "Imported $CERT as $ALIAS"
|
|
fi
|
|
done
|
|
fi
|
|
echo "Certificate import process completed."
|
|
volumeMounts:
|
|
- name: additonal-ca-certificates
|
|
mountPath: /opt/opik/custom-ca-certs
|
|
readOnly: true
|
|
- mountPath: /emptydir
|
|
name: ca-trust-store
|
|
{{- end }}
|
|
{{- if and (eq $key "backend") $value.waitForMysql.enabled }}
|
|
- name: wait-for-mysql-service
|
|
image: "{{ default $.Values.registry $value.waitForMysql.image.registry }}/{{ $value.waitForMysql.image.repository }}:{{ $value.waitForMysql.image.tag }}"
|
|
imagePullPolicy: {{ default $value.image.pullPolicy $value.waitForMysql.image.pullPolicy }}
|
|
securityContext:
|
|
{{- toYaml $value.securityContext | nindent 12 }}
|
|
command: ["/bin/sh", "-c"]
|
|
args:
|
|
- |
|
|
until nc -z -v -w5 {{ $value.waitForMysql.mysql.host }} {{ $value.waitForMysql.mysql.port }}; do
|
|
echo "MySQL is not available. Waiting for MySQL at {{ $value.waitForMysql.mysql.host }}:{{ $value.waitForMysql.mysql.port }}...";
|
|
sleep 5;
|
|
done;
|
|
echo "MySQL is available at {{ $value.waitForMysql.mysql.host }}:{{ $value.waitForMysql.mysql.port }}";
|
|
{{- with $value.waitForMysql.resources }}
|
|
resources:
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if and (eq $key "backend") $value.waitForClickhouse }}
|
|
- name: wait-for-clickhouse-service
|
|
image: "{{ default $.Values.registry $value.waitForClickhouse.image.registry }}/{{ $value.waitForClickhouse.image.repository }}:{{ $value.waitForClickhouse.image.tag }}"
|
|
imagePullPolicy: {{ default $value.image.pullPolicy $value.waitForClickhouse.image.pullPolicy }}
|
|
securityContext:
|
|
{{- toYaml $value.securityContext | nindent 12 }}
|
|
command: ["/bin/sh", "-c"]
|
|
args:
|
|
- |
|
|
while [ $(curl -ksw "%{http_code}" "{{ $value.waitForClickhouse.clickhouse.protocol }}://{{ $value.waitForClickhouse.clickhouse.host }}:{{ $value.waitForClickhouse.clickhouse.port }}" -o /dev/null) -ne 200 ];
|
|
do
|
|
sleep 5;
|
|
echo "Clickhouse is not available. Waiting for the Clickhouse...";
|
|
done
|
|
{{- with $value.waitForClickhouse.resources }}
|
|
resources:
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if and (eq $key "backend") $value.run_migration }}
|
|
- name: backend-migrations
|
|
image: "{{ $.Values.registry }}/{{ $value.image.repository }}:{{ default $.Chart.AppVersion $value.image.tag }}"
|
|
imagePullPolicy: {{ $value.image.pullPolicy }}
|
|
securityContext:
|
|
{{- toYaml $value.securityContext | nindent 12 }}
|
|
command: ["./run_db_migrations.sh"]
|
|
{{- with $value.envFrom }}
|
|
envFrom:
|
|
{{- toYaml . | nindent 10 }}
|
|
{{- end }}
|
|
volumeMounts:
|
|
{{- if and $value.usesJavaTrustStore (or $.Values.caCerts.additionalCACerts $.Values.caCerts.existingAdditionalCACertsRef $.Values.caCerts.overwriteJavaCATrustStore.enabled) }}
|
|
- name: {{ ternary $.Values.caCerts.overwriteJavaCATrustStore.volume.name "ca-trust-store" $.Values.caCerts.overwriteJavaCATrustStore.enabled }}
|
|
subPath: {{ ternary $.Values.caCerts.overwriteJavaCATrustStore.subPath "cacerts" $.Values.caCerts.overwriteJavaCATrustStore.enabled }}
|
|
mountPath: /etc/pki/ca-trust/extracted/java/cacerts
|
|
{{- end }}
|
|
{{- with $value.volumeMounts }}
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
{{- with $value.run_migration_resources }}
|
|
resources:
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
{{- end}}
|
|
{{- with $value.initContainers }}
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
containers:
|
|
{{- with $value.additionalContainers }}
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
- name: {{ include "opik.name" $ }}-{{ $key | lower }}
|
|
securityContext:
|
|
{{- toYaml $value.securityContext | nindent 12 }}
|
|
image: "{{ $.Values.registry }}/{{ $value.image.repository }}:{{ default $.Chart.AppVersion $value.image.tag }}"
|
|
imagePullPolicy: {{ $value.image.pullPolicy }}
|
|
{{- with $value.ports }}
|
|
ports:
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
{{- with $value.livenessProbe }}
|
|
livenessProbe:
|
|
{{- include "opik.probe" . | nindent 12 }}
|
|
{{- end }}
|
|
{{- with $value.readinessProbe }}
|
|
readinessProbe:
|
|
{{- include "opik.probe" . | nindent 12 }}
|
|
{{- end }}
|
|
{{- with $value.startupProbe }}
|
|
startupProbe:
|
|
{{- include "opik.probe" . | nindent 12 }}
|
|
{{- end }}
|
|
{{- with $value.resources }}
|
|
resources:
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
{{- with $value.envFrom }}
|
|
envFrom:
|
|
{{- toYaml . | nindent 10 }}
|
|
{{- end }}
|
|
{{- if $value.secretRefs }}
|
|
{{- range $value.secretRefs }}
|
|
{{- if .name }}
|
|
- secretRef:
|
|
name: {{ .name }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
volumeMounts:
|
|
{{- if and $value.usesJavaTrustStore (or $.Values.caCerts.additionalCACerts $.Values.caCerts.existingAdditionalCACertsRef $.Values.caCerts.overwriteJavaCATrustStore.enabled) }}
|
|
- name: {{ ternary $.Values.caCerts.overwriteJavaCATrustStore.volume.name "ca-trust-store" $.Values.caCerts.overwriteJavaCATrustStore.enabled }}
|
|
subPath: {{ ternary $.Values.caCerts.overwriteJavaCATrustStore.subPath "cacerts" $.Values.caCerts.overwriteJavaCATrustStore.enabled }}
|
|
mountPath: /etc/pki/ca-trust/extracted/java/cacerts
|
|
{{- end }}
|
|
{{- if eq $key "frontend" }}
|
|
- name: {{ include "opik.name" $ }}-frontend-nginx
|
|
mountPath: /etc/nginx/templates/default.conf.template
|
|
subPath: default.conf.template
|
|
readOnly: true
|
|
{{- if $.Values.component.frontend.logFormats }}
|
|
- name: {{ include "opik.name" $ }}-frontend-nginx
|
|
mountPath: /etc/nginx/templates/10-log-formats.conf.template
|
|
subPath: 10-log-formats.conf.template
|
|
readOnly: true
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with $value.volumeMounts }}
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
{{- with $value.lifecycle }}
|
|
lifecycle:
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
volumes:
|
|
{{- if $value.usesJavaTrustStore }}
|
|
{{- if $.Values.caCerts.overwriteJavaCATrustStore.enabled }}
|
|
{{- toYaml (list $.Values.caCerts.overwriteJavaCATrustStore.volume) | nindent 8 }}
|
|
{{- else if (or $.Values.caCerts.additionalCACerts $.Values.caCerts.existingAdditionalCACertsRef) }}
|
|
- name: additonal-ca-certificates
|
|
{{- if $.Values.caCerts.additionalCACertsInSecret }}
|
|
secret:
|
|
{{- if $.Values.caCerts.existingAdditionalCACertsRef }}
|
|
secretName: {{ $.Values.caCerts.existingAdditionalCACertsRef }}
|
|
{{- else }}
|
|
secretName: {{ include "opik.name" $ }}-extra-ca-certs
|
|
{{- end }}
|
|
{{- else }}
|
|
configMap:
|
|
{{- if $.Values.caCerts.existingAdditionalCACertsRef }}
|
|
name: {{ $.Values.caCerts.existingAdditionalCACertsRef }}
|
|
{{- else }}
|
|
name: {{ include "opik.name" $ }}-extra-ca-certs
|
|
{{- end }}
|
|
{{- end }}
|
|
- name: ca-trust-store
|
|
emptyDir: {}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if eq $key "frontend" }}
|
|
- name: {{ include "opik.name" $ }}-frontend-nginx
|
|
configMap:
|
|
name: {{ include "opik.name" $ }}-frontend-nginx
|
|
{{- end }}
|
|
{{- with $value.volumes }}
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- $ns := ternary $value.nodeSelector $.Values.nodeSelector (hasKey $value "nodeSelector") }}
|
|
{{- with $ns }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with $value.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- $tol := ternary $value.tolerations $.Values.tolerations (hasKey $value "tolerations") }}
|
|
{{- with $tol }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- $tsc := ternary $value.topologySpreadConstraints $.Values.topologySpreadConstraints (hasKey $value "topologySpreadConstraints") }}
|
|
{{- with $tsc }}
|
|
topologySpreadConstraints:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|