Skip to content
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

loki-stack: Add release name to prometheus service name. #1174

Merged
merged 1 commit into from
Oct 18, 2019
Merged

loki-stack: Add release name to prometheus service name. #1174

merged 1 commit into from
Oct 18, 2019

Conversation

rally25rs
Copy link
Contributor

What this PR does / why we need it:

Previously the prometheus service name was hard-coded to prometheus-server which would cause a conflict if attempting to helm install more than one release or namespace. For example

helm install release-one
helm install release-two

Would result in

Error: release release-two failed: clusterroles.rbac.authorization.k8s.io "prometheus-server" already exists

This PR incorporates the {{ .Release.Name }} into the service name to make it consistent with other generated names.

Note that the prometheus.fullname template defined in _helpers.tpl is named specifically to override the one defined by the normal prometheus chart. This allows the prometheus chart and templates in loki-stack to use the same logic for getting the prometheus service name.

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

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

@CLAassistant
Copy link

CLAassistant commented Oct 18, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thank you !

@cyriltovena cyriltovena merged commit fa79c24 into grafana:master Oct 18, 2019
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.

loki-stack sets a name for prometheus; breaks multiple helm releases
3 participants