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 }}