Skip to content

Commit 733d99f

Browse files
authored
fix(helm/loki): Add namespace to Loki templates for ruler and index-gateway (#14838)
1 parent aef54be commit 733d99f

8 files changed

+8
-0
lines changed

‎production/helm/loki/templates/index-gateway/poddisruptionbudget-index-gateway.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ apiVersion: {{ include "loki.pdb.apiVersion" . }}
77
kind: PodDisruptionBudget
88
metadata:
99
name: {{ include "loki.indexGatewayFullname" . }}
10+
namespace: {{ $.Release.Namespace }}
1011
labels:
1112
{{- include "loki.indexGatewayLabels" . | nindent 4 }}
1213
spec:

‎production/helm/loki/templates/index-gateway/service-index-gateway-headless.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apiVersion: v1
44
kind: Service
55
metadata:
66
name: {{ include "loki.indexGatewayFullname" . }}-headless
7+
namespace: {{ $.Release.Namespace }}
78
labels:
89
{{- include "loki.indexGatewaySelectorLabels" . | nindent 4 }}
910
prometheus.io/service-monitor: "false"

‎production/helm/loki/templates/index-gateway/service-index-gateway.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apiVersion: v1
44
kind: Service
55
metadata:
66
name: {{ include "loki.indexGatewayFullname" . }}
7+
namespace: {{ $.Release.Namespace }}
78
labels:
89
{{- include "loki.indexGatewayLabels" . | nindent 4 }}
910
{{- with .Values.indexGateway.serviceLabels }}

‎production/helm/loki/templates/index-gateway/statefulset-index-gateway.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apiVersion: apps/v1
44
kind: StatefulSet
55
metadata:
66
name: {{ include "loki.indexGatewayFullname" . }}
7+
namespace: {{ $.Release.Namespace }}
78
labels:
89
{{- include "loki.indexGatewayLabels" . | nindent 4 }}
910
{{- with .Values.loki.annotations }}

‎production/helm/loki/templates/ruler/configmap-ruler.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ apiVersion: v1
66
kind: ConfigMap
77
metadata:
88
name: {{ include "loki.rulerFullname" $ }}-{{ include "loki.rulerRulesDirName" $dir }}
9+
namespace: {{ $.Release.Namespace }}
910
labels:
1011
{{- include "loki.rulerLabels" $ | nindent 4 }}
1112
data:

‎production/helm/loki/templates/ruler/poddisruptionbudget-ruler.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ apiVersion: {{ include "loki.pdb.apiVersion" . }}
77
kind: PodDisruptionBudget
88
metadata:
99
name: {{ include "loki.rulerFullname" . }}
10+
namespace: {{ $.Release.Namespace }}
1011
labels:
1112
{{- include "loki.rulerLabels" . | nindent 4 }}
1213
spec:

‎production/helm/loki/templates/ruler/service-ruler.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apiVersion: v1
44
kind: Service
55
metadata:
66
name: {{ include "loki.rulerFullname" . }}
7+
namespace: {{ $.Release.Namespace }}
78
labels:
89
{{- include "loki.rulerSelectorLabels" . | nindent 4 }}
910
{{- with .Values.ruler.serviceLabels }}

‎production/helm/loki/templates/ruler/statefulset-ruler.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apiVersion: apps/v1
44
kind: StatefulSet
55
metadata:
66
name: {{ include "loki.rulerFullname" . }}
7+
namespace: {{ $.Release.Namespace }}
78
labels:
89
{{- include "loki.rulerLabels" . | nindent 4 }}
910
app.kubernetes.io/part-of: memberlist

0 commit comments

Comments
 (0)