From dbc36835a16f3c4f7e813a8a536c0922ef1f6bbd Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Fri, 23 Sep 2022 11:45:27 +0200
Subject: Add labels template
---
templates/hpa.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'templates/hpa.yaml')
diff --git a/templates/hpa.yaml b/templates/hpa.yaml
index c6fbefe..fe1f4e4 100644
--- a/templates/hpa.yaml
+++ b/templates/hpa.yaml
@@ -1,12 +1,11 @@
+---
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "invidious.fullname" . }}
labels:
- app: {{ template "invidious.name" . }}
- chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
- release: {{ .Release.Name }}
+ {{- include "invidious.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
@@ -16,3 +15,4 @@ spec:
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
targetCPUUtilizationPercentage: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
+...
--
cgit v1.1