From ecc47d2a7ddb9c546f0edc0ae74be5a6c7f04156 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Tue, 5 Dec 2023 10:49:09 +0100 Subject: [PATCH] feat(helm): template assist-stats only for ee Signed-off-by: rjshrjndrn --- .../openreplay/charts/assist-stats/templates/deployment.yaml | 2 ++ .../openreplay/charts/assist-stats/templates/service.yaml | 2 ++ .../charts/assist-stats/templates/serviceaccount.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/scripts/helmcharts/openreplay/charts/assist-stats/templates/deployment.yaml b/scripts/helmcharts/openreplay/charts/assist-stats/templates/deployment.yaml index 7d4941122..014facacb 100644 --- a/scripts/helmcharts/openreplay/charts/assist-stats/templates/deployment.yaml +++ b/scripts/helmcharts/openreplay/charts/assist-stats/templates/deployment.yaml @@ -1,3 +1,4 @@ +{{- if .Values.global.enterpriseEditionLicense }} apiVersion: apps/v1 kind: Deployment metadata: @@ -86,3 +87,4 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} +{{- end }} diff --git a/scripts/helmcharts/openreplay/charts/assist-stats/templates/service.yaml b/scripts/helmcharts/openreplay/charts/assist-stats/templates/service.yaml index 7ca2ddb1d..a6e2497b8 100644 --- a/scripts/helmcharts/openreplay/charts/assist-stats/templates/service.yaml +++ b/scripts/helmcharts/openreplay/charts/assist-stats/templates/service.yaml @@ -1,3 +1,4 @@ +{{- if .Values.global.enterpriseEditionLicense }} apiVersion: v1 kind: Service metadata: @@ -16,3 +17,4 @@ spec: {{- end}} selector: {{- include "assist-stats.selectorLabels" . | nindent 4 }} +{{- end}} diff --git a/scripts/helmcharts/openreplay/charts/assist-stats/templates/serviceaccount.yaml b/scripts/helmcharts/openreplay/charts/assist-stats/templates/serviceaccount.yaml index 1fb01d758..3804ac400 100644 --- a/scripts/helmcharts/openreplay/charts/assist-stats/templates/serviceaccount.yaml +++ b/scripts/helmcharts/openreplay/charts/assist-stats/templates/serviceaccount.yaml @@ -1,3 +1,4 @@ +{{- if .Values.global.enterpriseEditionLicense }} {{- if .Values.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount @@ -11,3 +12,4 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} +{{- end }}