From 734c6ec4ef022133f6e257ef5dce1bd4bc67fb73 Mon Sep 17 00:00:00 2001 From: Yoan Blanc Date: Wed, 23 Oct 2024 13:30:59 +0200 Subject: [PATCH 1/2] fix wild tab in service Signed-off-by: Yoan Blanc --- pkg/processor/service/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/processor/service/service.go b/pkg/processor/service/service.go index 233adb6..a23b5dc 100644 --- a/pkg/processor/service/service.go +++ b/pkg/processor/service/service.go @@ -25,9 +25,9 @@ spec: type: {{ .Values.%[1]s.type }} selector: %[2]s - {{- include "%[3]s.selectorLabels" . | nindent 4 }} + {{- include "%[3]s.selectorLabels" . | nindent 4 }} ports: - {{- .Values.%[1]s.ports | toYaml | nindent 2 }}` + {{- .Values.%[1]s.ports | toYaml | nindent 2 }}` ) var svcGVC = schema.GroupVersionKind{ From 2f6d72c0edd38c7f4b14ffcf7df58f9f3cd54f25 Mon Sep 17 00:00:00 2001 From: Yoan Blanc Date: Thu, 7 Nov 2024 13:17:22 +0100 Subject: [PATCH 2/2] fixup! fix wild tab in service Signed-off-by: Yoan Blanc --- examples/app/templates/myapp-service.yaml | 4 ++-- examples/app/templates/nginx.yaml | 4 ++-- examples/operator/templates/metrics-service.yaml | 4 ++-- examples/operator/templates/webhook-service.yaml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/app/templates/myapp-service.yaml b/examples/app/templates/myapp-service.yaml index 4be0946..4642995 100644 --- a/examples/app/templates/myapp-service.yaml +++ b/examples/app/templates/myapp-service.yaml @@ -9,6 +9,6 @@ spec: type: {{ .Values.myappService.type }} selector: app: myapp - {{- include "app.selectorLabels" . | nindent 4 }} + {{- include "app.selectorLabels" . | nindent 4 }} ports: - {{- .Values.myappService.ports | toYaml | nindent 2 }} \ No newline at end of file + {{- .Values.myappService.ports | toYaml | nindent 2 }} \ No newline at end of file diff --git a/examples/app/templates/nginx.yaml b/examples/app/templates/nginx.yaml index c10df4c..63f84b9 100644 --- a/examples/app/templates/nginx.yaml +++ b/examples/app/templates/nginx.yaml @@ -9,6 +9,6 @@ spec: type: {{ .Values.nginx.type }} selector: app: nginx - {{- include "app.selectorLabels" . | nindent 4 }} + {{- include "app.selectorLabels" . | nindent 4 }} ports: - {{- .Values.nginx.ports | toYaml | nindent 2 }} \ No newline at end of file + {{- .Values.nginx.ports | toYaml | nindent 2 }} \ No newline at end of file diff --git a/examples/operator/templates/metrics-service.yaml b/examples/operator/templates/metrics-service.yaml index 222169c..c3738d1 100644 --- a/examples/operator/templates/metrics-service.yaml +++ b/examples/operator/templates/metrics-service.yaml @@ -9,6 +9,6 @@ spec: type: {{ .Values.metricsService.type }} selector: control-plane: controller-manager - {{- include "operator.selectorLabels" . | nindent 4 }} + {{- include "operator.selectorLabels" . | nindent 4 }} ports: - {{- .Values.metricsService.ports | toYaml | nindent 2 }} \ No newline at end of file + {{- .Values.metricsService.ports | toYaml | nindent 2 }} \ No newline at end of file diff --git a/examples/operator/templates/webhook-service.yaml b/examples/operator/templates/webhook-service.yaml index 58ff10f..57c9005 100644 --- a/examples/operator/templates/webhook-service.yaml +++ b/examples/operator/templates/webhook-service.yaml @@ -8,6 +8,6 @@ spec: type: {{ .Values.webhookService.type }} selector: control-plane: controller-manager - {{- include "operator.selectorLabels" . | nindent 4 }} + {{- include "operator.selectorLabels" . | nindent 4 }} ports: - {{- .Values.webhookService.ports | toYaml | nindent 2 }} \ No newline at end of file + {{- .Values.webhookService.ports | toYaml | nindent 2 }} \ No newline at end of file