From 6abb12dd7078d7e0d84ab67d93301c9599768840 Mon Sep 17 00:00:00 2001 From: Jackson Coelho Date: Wed, 19 Feb 2025 14:15:48 +0100 Subject: [PATCH] chore(helm): add missing check for adminAPI on enterprise (#16369) --- .../helm/loki/templates/admin-api/deployment-admin-api.yaml | 2 +- .../helm/loki/templates/admin-api/service-admin-api.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/production/helm/loki/templates/admin-api/deployment-admin-api.yaml b/production/helm/loki/templates/admin-api/deployment-admin-api.yaml index 75623bdbf8995..b6dbcf75c80e5 100644 --- a/production/helm/loki/templates/admin-api/deployment-admin-api.yaml +++ b/production/helm/loki/templates/admin-api/deployment-admin-api.yaml @@ -1,4 +1,4 @@ -{{- if .Values.enterprise.enabled }} +{{- if and .Values.enterprise.enabled .Values.enterprise.adminApi.enabled }} apiVersion: apps/v1 kind: Deployment metadata: diff --git a/production/helm/loki/templates/admin-api/service-admin-api.yaml b/production/helm/loki/templates/admin-api/service-admin-api.yaml index c7daa2790a120..8f8172366e734 100644 --- a/production/helm/loki/templates/admin-api/service-admin-api.yaml +++ b/production/helm/loki/templates/admin-api/service-admin-api.yaml @@ -1,4 +1,4 @@ -{{- if .Values.enterprise.enabled }} +{{- if and .Values.enterprise.enabled .Values.enterprise.adminApi.enabled }} apiVersion: v1 kind: Service metadata: @@ -25,4 +25,4 @@ spec: targetPort: grpc selector: {{- include "enterprise-logs.adminApiSelectorLabels" . | nindent 4 }} -{{- end }} \ No newline at end of file +{{- end }}