Skip to content

Commit

Permalink
fix(dvcx-worker): Disable dvcx-workers when udf is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mjasion committed Aug 23, 2023
1 parent c8dd482 commit 29d294f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/studio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: studio
description: A Helm chart for Kubernetes
type: application
version: 0.4.5
version: 0.5.0
appVersion: "v2.27.0"
maintainers:
- name: iterative
Expand Down
2 changes: 1 addition & 1 deletion charts/studio/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# studio

![Version: 0.4.5](https://img.shields.io/badge/Version-0.4.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.27.0](https://img.shields.io/badge/AppVersion-v2.27.0-informational?style=flat-square)
![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.27.0](https://img.shields.io/badge/AppVersion-v2.27.0-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down
4 changes: 4 additions & 0 deletions charts/studio/templates/deployment-studio-dvcx-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ metadata:
{{- include "studio-dvcx-worker.labels" . | nindent 4 }}
spec:
{{- if not .Values.studioDvcxWorker.autoscaling.enabled }}
{{- if ((.Values.dvcx).udfEnabled) }}
replicas: {{ .Values.studioDvcxWorker.replicaCount }}
{{- else }}
replicas: 0
{{- end }}
{{- end }}
selector:
matchLabels:
Expand Down
5 changes: 5 additions & 0 deletions charts/studio/templates/hpa-studio-dvcx-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: studio-dvcx-worker
{{- if ((.Values.dvcx).udfEnabled) }}
minReplicas: {{ .Values.studioDvcxWorker.autoscaling.minReplicas }}
maxReplicas: {{ .Values.studioDvcxWorker.autoscaling.maxReplicas }}
{{- else }}
minReplicas: 0
maxReplicas: 0
{{- end}}
metrics:
{{- if .Values.studioDvcxWorker.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
Expand Down

0 comments on commit 29d294f

Please sign in to comment.