-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(helm/loki): Add namespace to Loki templates for ruler and index-gateway #14838
fix(helm/loki): Add namespace to Loki templates for ruler and index-gateway #14838
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, thanks!
This comment has been minimized.
This comment has been minimized.
@trevorwhitney |
Sorry for the repeated CI failures. |
This comment has been minimized.
This comment has been minimized.
Kubernetes Manifest Diff SummaryScenario: default-single-binary-values (Added: 0, Modified: 6, Removed: 0)
Summary:
Added FilesNo added files Modified Filesloki/templates/ruler/service-ruler.yaml*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/ruler/service-ruler.yaml 2024-11-19 04:39:22.692193446 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/ruler/service-ruler.yaml 2024-11-19 04:39:25.504178750 +0000
***************
*** 4,9 ****
--- 4,10 ----
kind: Service
metadata:
name: loki-test-chart-name-ruler
+ namespace: default
labels:
app.kubernetes.io/name: loki
app.kubernetes.io/instance: loki-test-chart-name loki/templates/ruler/statefulset-ruler.yaml*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/ruler/statefulset-ruler.yaml 2024-11-19 04:39:22.692193446 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/ruler/statefulset-ruler.yaml 2024-11-19 04:39:25.508178733 +0000
***************
*** 4,9 ****
--- 4,10 ----
kind: StatefulSet
metadata:
name: loki-test-chart-name-ruler
+ namespace: default
labels:
helm.sh/chart: loki-6.19.0
app.kubernetes.io/name: loki loki/templates/index-gateway/poddisruptionbudget-index-gateway.yaml*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/index-gateway/poddisruptionbudget-index-gateway.yaml 2024-11-19 04:39:22.688193468 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/index-gateway/poddisruptionbudget-index-gateway.yaml 2024-11-19 04:39:25.504178750 +0000
***************
*** 4,9 ****
--- 4,10 ----
kind: PodDisruptionBudget
metadata:
name: loki-test-chart-name-index-gateway
+ namespace: default
labels:
helm.sh/chart: loki-6.19.0
app.kubernetes.io/name: loki loki/templates/index-gateway/service-index-gateway-headless.yaml*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/index-gateway/service-index-gateway-headless.yaml 2024-11-19 04:39:22.692193446 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/index-gateway/service-index-gateway-headless.yaml 2024-11-19 04:39:25.504178750 +0000
***************
*** 4,9 ****
--- 4,10 ----
kind: Service
metadata:
name: loki-test-chart-name-index-gateway-headless
+ namespace: default
labels:
app.kubernetes.io/name: loki
app.kubernetes.io/instance: loki-test-chart-name loki/templates/index-gateway/statefulset-index-gateway.yaml*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/index-gateway/statefulset-index-gateway.yaml 2024-11-19 04:39:22.692193446 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/index-gateway/statefulset-index-gateway.yaml 2024-11-19 04:39:25.504178750 +0000
***************
*** 4,9 ****
--- 4,10 ----
kind: StatefulSet
metadata:
name: loki-test-chart-name-index-gateway
+ namespace: default
labels:
helm.sh/chart: loki-6.19.0
app.kubernetes.io/name: loki loki/templates/index-gateway/service-index-gateway.yaml*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/index-gateway/service-index-gateway.yaml 2024-11-19 04:39:22.692193446 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/index-gateway/service-index-gateway.yaml 2024-11-19 04:39:25.504178750 +0000
***************
*** 4,9 ****
--- 4,10 ----
kind: Service
metadata:
name: loki-test-chart-name-index-gateway
+ namespace: default
labels:
helm.sh/chart: loki-6.19.0
app.kubernetes.io/name: loki Removed FilesNo removed files Scenario: default-values (Added: 0, Modified: 0, Removed: 0)
Summary:
Added FilesNo added files Modified FilesNo modified files Removed FilesNo removed files Scenario: ingress-values (Added: 0, Modified: 0, Removed: 0)
Summary:
Added FilesNo added files Modified FilesNo modified files Removed FilesNo removed files Scenario: legacy-monitoring-values (Added: 0, Modified: 0, Removed: 0)
Summary:
Added FilesNo added files Modified FilesNo modified files Removed FilesNo removed files Scenario: simple-scalable-aws-kube-irsa-values (Added: 0, Modified: 0, Removed: 0)
Summary:
Added FilesNo added files Modified FilesNo modified files Removed FilesNo removed files |
I found the cause of the failure in |
I would like to run lint again because @trevorwhitney fixed it at #15001. |
What this PR does / why we need it:
When installing Loki in Distributed mode using the Helm chart, the ruler and index-gateway were missing a namespace.
I would like them to refer to .Release.Namespace, like the other templates, even if the namespace is not specified in the Helm CLI.
However, if someone has intentionally omitted this description for some reason, I apologize.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist
CONTRIBUTING.md
guide (required)feat
PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.docs/sources/setup/upgrade/_index.md
deprecated-config.yaml
anddeleted-config.yaml
files respectively in thetools/deprecated-config-checker
directory. Example PR