Skip to content

feat: allow sidecars to watch specific resource names - #688

Open
cvas22 wants to merge 2 commits into
cortexproject:masterfrom
cvas22:feat/561-sidecar-resource-name
Open

cvas22 wants to merge 2 commits into
cortexproject:masterfrom
cvas22:feat/561-sidecar-resource-name

Conversation

@cvas22

@cvas22 cvas22 commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

What this PR does:

I added ruler.sidecar.resourceName and alertmanager.sidecar.resourceName. When set, the chart passes the value as RESOURCE_NAME to the k8s-sidecar containers, so a sidecar only watches the listed ConfigMaps and/or Secrets instead of every resource that matches the label. The default is empty, so nothing changes for existing installs.

This covers the ruler Deployment and both alertmanager workloads (Deployment and StatefulSet).

Which issue(s) this PR fixes:
Fixes #561

Checklist

  • CHANGELOG.md updated

Notes

I updated the README rows to match helm-docs output. The new env var uses the same pattern as the existing RESOURCE block, with with so it is only rendered when a value is set.

Add ruler.sidecar.resourceName and alertmanager.sidecar.resourceName, which
set RESOURCE_NAME on the k8s-sidecar containers so they only watch the listed
ConfigMaps and/or Secrets.

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add one more env RESOURCE_NAME to ruler sidecar

1 participant