From d9b074d04c2d239cadb4ad82d756800df1ae886a Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Fri, 23 Sep 2022 11:49:15 +0200 Subject: Put yaml document markers inside enabled blocks --- Chart.yaml | 2 +- templates/hpa.yaml | 4 ++-- templates/ingress.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 5ba8846..fddfcb1 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: invidious description: Invidious is an alternative front-end to YouTube -version: 2.0.1 +version: 2.0.2 appVersion: 0.20.1 keywords: - youtube diff --git a/templates/hpa.yaml b/templates/hpa.yaml index fe1f4e4..41f2d40 100644 --- a/templates/hpa.yaml +++ b/templates/hpa.yaml @@ -1,5 +1,5 @@ ---- {{- if .Values.autoscaling.enabled }} +--- apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: @@ -14,5 +14,5 @@ spec: minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }} targetCPUUtilizationPercentage: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} -{{- end }} ... +{{- end }} diff --git a/templates/ingress.yaml b/templates/ingress.yaml index b51d695..b1b2ec0 100644 --- a/templates/ingress.yaml +++ b/templates/ingress.yaml @@ -1,5 +1,5 @@ ---- {{- if .Values.ingress.enabled -}} +--- {{- $fullName := include "invidious.fullname" . -}} apiVersion: networking.k8s.io/v1 kind: Ingress @@ -38,5 +38,5 @@ spec: number: {{ $.Values.service.port }} {{- end }} {{- end }} -{{- end }} ... +{{- end }} -- cgit v1.1