Skip to content

Commit

Permalink
Omit worker deployment replica count if autoscaling is enabled
Browse files Browse the repository at this point in the history
Co-authored-by: Yixing Yan <[email protected]>
  • Loading branch information
yanyixing authored and mosabua committed Aug 14, 2023
1 parent 2438f79 commit 56f8ab0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/trino/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ metadata:
heritage: {{ .Release.Service }}
component: worker
spec:
{{- if not .Values.server.autoscaling.enabled }}
replicas: {{ .Values.server.workers }}
{{- end }}
selector:
matchLabels:
app: {{ template "trino.name" . }}
Expand Down

0 comments on commit 56f8ab0

Please sign in to comment.