Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 0.3.2 version #9

Merged
merged 6 commits into from
Jan 9, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/linters/chart-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ chart-dirs:
chart-repos:
- bitnami=https://charts.bitnami.com/bitnami

# The default branch name will be 'main' soon
# The default branch name will be 'main' soon, but for now we need this.
target-branch: main
2 changes: 1 addition & 1 deletion langfuse/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.1
version: 0.3.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
34 changes: 33 additions & 1 deletion langfuse/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,32 @@ spec:
serviceAccountName: {{ include "langfuse.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
initContainers:
- name: check-postgres
image: busybox:latest
env:
{{- if .Values.postgresql.enabled }}
- name: DATABASE_HOST
value: {{ include "langfuse.databaseHost" . | quote }}
- name: DATABASE_PORT
value: "5432"
{{- else }}
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: {{ include "langfuse.connectionSecret" . | quote }}
key: database-url
{{- end }}
command:
- sh
- -c
- >
until nc -z -v -w30
${DATABASE_HOST:-$(echo $DATABASE_URL | awk -F[/:] '{print $4}')}
${DATABASE_PORT:-$(echo $DATABASE_URL | awk -F[/:] '{print $5}'):-"5432"} ; do
echo 'Waiting for Postgres...' ;
sleep 5 ;
done
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down Expand Up @@ -80,10 +106,16 @@ spec:
- configMapRef:
name: {{ include "langfuse.configMap" . }}
{{- include "langfuse.additionalSecrets" . }}
readinessProbe:
startupProbe:
tcpSocket:
port: http
failureThreshold: 30
periodSeconds: 10
livenessProbe:
httpGet:
path: /api/public/health
port: http
periodSeconds: 20
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
29 changes: 9 additions & 20 deletions langfuse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@ databaseURL: "postgresql://postgres:postgres@localhost:5432/postgres"
# This URL is used for migrations
directURL: ""

# Several toggles for Langfuse functionality
toggles:
disablePublicSignup: false
experimentalFeatures: false
telemetry: true

# Where the non-public Langfuse configuration is stored
secrets:
# This group of settings is only relevant if postgresql.enabled is set.
postgresql:
postgresql: # This group of settings is only relevant if postgresql.enabled is set.
# If set (default), random values are saved in the postgresql.auth.existingSecret secret
# for all the missing keys (existing values for these keys are preserved).
# If unset, you are expected to create the secret yourself before installing the chart.
Expand All @@ -31,6 +24,7 @@ secrets:
# but Postgres will continue to use an old password since it's stored on the PVC.
keepWhenUninstalled: true
internal:
# By default, each installation gets their own internal secret
# You can change the name to make several installations share the API keys.
name: "{{ .Release.Name }}-internal-secret"
# If set (default), random values are saved in the secrets.internal.name secret
Expand All @@ -46,6 +40,12 @@ secrets:
# You will need to manage those manually; they will not be touched by the chart.
additional: []

# Several toggles for Langfuse functionality
toggles:
disablePublicSignup: false
experimentalFeatures: false
telemetry: true

# ------------ Postgres subchart

postgresql:
Expand Down Expand Up @@ -116,18 +116,7 @@ ingress:
# hosts:
# - chart-example.local

resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
resources: {}

autoscaling:
enabled: false
Expand Down
Loading