Skip to content

Commit ccebc6f

Browse files
chore: allow host backend to come up without deployments (#606)
1 parent fb4b02d commit ccebc6f

File tree

10 files changed

+11
-9
lines changed

10 files changed

+11
-9
lines changed

charts/langsmith/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ maintainers:
55
email: ankush@langchain.dev
66
description: Helm chart to deploy the langsmith application and all services it depends on.
77
type: application
8-
version: 0.13.18
8+
version: 0.13.19
99
appVersion: "0.13.20"

charts/langsmith/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# langsmith
22

3-
![Version: 0.13.18](https://img.shields.io/badge/Version-0.13.18-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.13.20](https://img.shields.io/badge/AppVersion-0.13.20-informational?style=flat-square)
3+
![Version: 0.13.19](https://img.shields.io/badge/Version-0.13.19-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.13.20](https://img.shields.io/badge/AppVersion-0.13.20-informational?style=flat-square)
44

55
Helm chart to deploy the langsmith application and all services it depends on.
66

@@ -840,6 +840,7 @@ For information on how to use this chart, up-to-date release notes, and other gu
840840
| hostBackend.deployment.topologySpreadConstraints | list | `[]` | |
841841
| hostBackend.deployment.volumeMounts | list | `[]` | |
842842
| hostBackend.deployment.volumes | list | `[]` | |
843+
| hostBackend.enabled | bool | `false` | Set to true to deploy the host-backend service. Also deployed when config.deployment.enabled is true. |
843844
| hostBackend.name | string | `"host-backend"` | |
844845
| hostBackend.pdb.annotations | object | `{}` | |
845846
| hostBackend.pdb.enabled | bool | `false` | |

charts/langsmith/templates/host-backend/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{{- include "langsmith.detectDuplicates" $envVars -}}
2727
{{- $volumes := concat .Values.commonVolumes .Values.hostBackend.deployment.volumes (include "langsmith.tlsVolumes" . | fromYamlArray) -}}
2828
{{- $volumeMounts := concat .Values.commonVolumeMounts .Values.hostBackend.deployment.volumeMounts (include "langsmith.tlsVolumeMounts" . | fromYamlArray) -}}
29-
{{- if .Values.config.deployment.enabled }}
29+
{{- if or .Values.config.deployment.enabled .Values.hostBackend.enabled }}
3030
{{- if .Values.hostBackend.rollout.enabled }}
3131
apiVersion: argoproj.io/v1alpha1
3232
kind: Rollout

charts/langsmith/templates/host-backend/hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.config.deployment.enabled .Values.hostBackend.autoscaling.hpa.enabled }}
1+
{{- if and (or .Values.config.deployment.enabled .Values.hostBackend.enabled) .Values.hostBackend.autoscaling.hpa.enabled }}
22
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:

charts/langsmith/templates/host-backend/pdb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.hostBackend.pdb.enabled }}
1+
{{- if and (or .Values.config.deployment.enabled .Values.hostBackend.enabled) .Values.hostBackend.pdb.enabled }}
22
apiVersion: policy/v1
33
kind: PodDisruptionBudget
44
metadata:

charts/langsmith/templates/host-backend/rbac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.config.deployment.enabled .Values.hostBackend.rbac.create}}
1+
{{- if and (or .Values.config.deployment.enabled .Values.hostBackend.enabled) .Values.hostBackend.rbac.create}}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: Role
44
metadata:

charts/langsmith/templates/host-backend/scaled-object.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.config.deployment.enabled .Values.hostBackend.autoscaling.keda.enabled }}
1+
{{- if and (or .Values.config.deployment.enabled .Values.hostBackend.enabled) .Values.hostBackend.autoscaling.keda.enabled }}
22
apiVersion: keda.sh/v1alpha1
33
kind: ScaledObject
44
metadata:

charts/langsmith/templates/host-backend/service-account.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.config.deployment.enabled .Values.hostBackend.serviceAccount.create -}}
1+
{{- if and (or .Values.config.deployment.enabled .Values.hostBackend.enabled) .Values.hostBackend.serviceAccount.create -}}
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:

charts/langsmith/templates/host-backend/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.config.deployment.enabled }}
1+
{{- if or .Values.config.deployment.enabled .Values.hostBackend.enabled }}
22
apiVersion: v1
33
kind: Service
44
metadata:

charts/langsmith/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ frontend:
992992
automountServiceAccountToken: true
993993

994994
hostBackend:
995+
enabled: false
995996
name: "host-backend"
996997
containerPort: 1985
997998
# -- ArgoCD Rollouts configuration. If enabled, will create a Rollout resource instead of a Deployment. See https://argo-rollouts.readthedocs.io/

0 commit comments

Comments
 (0)