Skip to content

Commit

Permalink
Fix root references
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Jan 17, 2024
1 parent e9ba29a commit 59c3e90
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions charts/posthog/templates/worker-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "posthog.fullname" . }}-{{ .name }}-worker
labels: {{- include "_snippet-metadata-labels-common" . | nindent 4 }}
name: {{ template "posthog.fullname" $ }}-{{ .name }}-worker
labels: {{- include "_snippet-metadata-labels-common" $ | nindent 4 }}
spec:
scaleTargetRef:
kind: Deployment
apiVersion: apps/v1
name: {{ template "posthog.fullname" . }}-{{ .name }}-worker
name: {{ template "posthog.fullname" $ }}-{{ .name }}-worker
minReplicas: {{ .Values.worker.hpa.minpods }}
maxReplicas: {{ .Values.worker.hpa.maxpods }}
metrics:
{{- with .Values.worker.hpa.cputhreshold }}
{{- with $.Values.worker.hpa.cputhreshold }}
- type: Resource
resource:
name: cpu
Expand All @@ -22,6 +22,6 @@ spec:
averageUtilization: {{ . }}
{{- end }}
behavior:
{{ toYaml .Values.worker.hpa.behavior | nindent 4 }}
{{ toYaml $.Values.worker.hpa.behavior | nindent 4 }}
{{- end }}
{{- end }}

0 comments on commit 59c3e90

Please sign in to comment.