Skip to content

Commit

Permalink
Use correct label in deployments/statefulsets
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain-infra committed Dec 13, 2023
1 parent 6402d16 commit b129620
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion charts/langsmith/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ maintainers:
email: [email protected]
description: Helm chart to deploy the langsmith application and all services it depends on.
type: application
version: 0.1.9
version: 0.1.10
appVersion: "0.1.0"
2 changes: 1 addition & 1 deletion charts/langsmith/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Common labels
Common annotations
*/}}
{{- define "langsmith.annotations" -}}
{{- if .Values.commonAnnotations }}
Expand Down
4 changes: 2 additions & 2 deletions charts/langsmith/templates/backend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
selector:
matchLabels:
{{- include "langsmith.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}
template:
metadata:
{{- with .Values.backend.deployment.annotations }}
Expand All @@ -31,7 +31,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- include "langsmith.labels" . | nindent 8 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}
spec:
{{- with .Values.images.imagePullSecrets }}
imagePullSecrets:
Expand Down
2 changes: 1 addition & 1 deletion charts/langsmith/templates/backend/run-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- include "langsmith.labels" . | nindent 8 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}
spec:
restartPolicy: Never
{{- with .Values.images.imagePullSecrets }}
Expand Down
2 changes: 1 addition & 1 deletion charts/langsmith/templates/backend/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ spec:
protocol: TCP
selector:
{{- include "langsmith.selectorLabels" . | nindent 4 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}
4 changes: 2 additions & 2 deletions charts/langsmith/templates/frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
selector:
matchLabels:
{{- include "langsmith.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.frontend.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.frontend.name }}
template:
metadata:
annotations:
Expand All @@ -32,7 +32,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- include "langsmith.labels" . | nindent 8 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.frontend.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.frontend.name }}
spec:
{{- with .Values.images.imagePullSecrets }}
imagePullSecrets:
Expand Down
2 changes: 1 addition & 1 deletion charts/langsmith/templates/frontend/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ spec:
protocol: TCP
selector:
{{- include "langsmith.selectorLabels" . | nindent 4 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.frontend.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.frontend.name }}
4 changes: 2 additions & 2 deletions charts/langsmith/templates/hub-backend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
selector:
matchLabels:
{{- include "langsmith.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}
template:
metadata:
{{- with .Values.hubBackend.deployment.annotations }}
Expand All @@ -31,7 +31,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- include "langsmith.labels" . | nindent 8 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}
spec:
{{- with .Values.images.imagePullSecrets }}
imagePullSecrets:
Expand Down
2 changes: 1 addition & 1 deletion charts/langsmith/templates/hub-backend/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ spec:
protocol: TCP
selector:
{{- include "langsmith.selectorLabels" . | nindent 4 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}
4 changes: 2 additions & 2 deletions charts/langsmith/templates/playground/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
selector:
matchLabels:
{{- include "langsmith.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.playground.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.playground.name }}
template:
metadata:
{{- with .Values.playground.deployment.annotations }}
Expand All @@ -31,7 +31,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- include "langsmith.labels" . | nindent 8 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.playground.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.playground.name }}
spec:
{{- with .Values.images.imagePullSecrets }}
imagePullSecrets:
Expand Down
2 changes: 1 addition & 1 deletion charts/langsmith/templates/playground/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ spec:
protocol: TCP
selector:
{{- include "langsmith.selectorLabels" . | nindent 4 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.playground.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.playground.name }}
2 changes: 1 addition & 1 deletion charts/langsmith/templates/postgres/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
protocol: TCP
selector:
{{- include "langsmith.selectorLabels" . | nindent 4 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.postgres.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.postgres.name }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/langsmith/templates/postgres/stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
selector:
matchLabels:
{{- include "langsmith.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.postgres.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.postgres.name }}
template:
metadata:
{{- with .Values.postgres.statefulSet.annotations }}
Expand All @@ -31,7 +31,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- include "langsmith.labels" . | nindent 8 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.postgres.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.postgres.name }}
spec:
{{- with .Values.images.imagePullSecrets }}
imagePullSecrets:
Expand Down
4 changes: 2 additions & 2 deletions charts/langsmith/templates/queue/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
selector:
matchLabels:
{{- include "langsmith.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.queue.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.queue.name }}
template:
metadata:
{{- with .Values.queue.deployment.annotations }}
Expand All @@ -31,7 +31,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- include "langsmith.labels" . | nindent 8 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.queue.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.queue.name }}
spec:
{{- with .Values.images.imagePullSecrets }}
imagePullSecrets:
Expand Down
2 changes: 1 addition & 1 deletion charts/langsmith/templates/redis/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
protocol: TCP
selector:
{{- include "langsmith.selectorLabels" . | nindent 4 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.redis.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.redis.name }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/langsmith/templates/redis/stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
selector:
matchLabels:
{{- include "langsmith.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.redis.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.redis.name }}
template:
metadata:
{{- with .Values.redis.statefulSet.annotations }}
Expand All @@ -31,7 +31,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- include "langsmith.labels" . | nindent 8 }}
app.kubernetes.io/name: {{ include "langsmith.fullname" . }}-{{ .Values.redis.name }}
app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.redis.name }}
spec:
{{- with .Values.images.imagePullSecrets }}
imagePullSecrets:
Expand Down

0 comments on commit b129620

Please sign in to comment.