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

[kube-prometheus-stack] Change AlertManager and Prometheus CR naming. #2188

Merged
merged 5 commits into from
Jul 31, 2022

Conversation

ksa-real
Copy link
Contributor

This is to avoid weird dependent object names. AlertManager instance is
named releasename-alertmanager, which results in most dependent
objects be named alertmanager-releasename-alertname. Same for
Prometheus CR. Generated PersistentVolume is particularly bad:
prometheus-releasename-prometheus-db-prometheus-releasename-prometheus-0.
If .Release.Name is main and we are not using .Values.nameoverride
then we get insane
prometheus-main-kube-prometheus-stack-prometheus-db-prometheus-main-kube-prometheus-stack-prometheus-db-0.

Signed-off-by: Sergei Kuzmin sergeikuzmin@gmail.com

What this PR does / why we need it:

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #

Special notes for your reviewer:

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

@ksa-real
Copy link
Contributor Author

This is a second attempt to merge this, the first one being #1752
@zanhsieh At your suggestion re-created the PR.

@zanhsieh
Copy link
Contributor

This is a second attempt to merge this, the first one being #1752 @zanhsieh At your suggestion re-created the PR.

cc @andrewgkew @bismarck @desaintmartin @monotek

Please speak out if you guys have specific reasons, especially the non-preferred design that cannot express in the code. Thank you.

zanhsieh
zanhsieh previously approved these changes Jun 25, 2022
@zanhsieh
Copy link
Contributor

@Xtigyro
Could you take a look at this?

@ksa-real
Copy link
Contributor Author

ksa-real commented Jul 9, 2022

@Xtigyro friendly ping

charts/kube-prometheus-stack/Chart.yaml Outdated Show resolved Hide resolved
charts/kube-prometheus-stack/values.yaml Outdated Show resolved Hide resolved
This is to avoid weird dependent object names. AlertManager instance is
named `releasename-alertmanager`, which results in most dependent
objects be named `alertmanager-releasename-alertname`. Same for
Prometheus CR. Generated PersistentVolume is particularly bad:
`prometheus-releasename-prometheus-db-prometheus-releasename-prometheus-0`.
If .Release.Name is `main` and we are not using .Values.nameoverride
then we get insane
`prometheus-main-kube-prometheus-stack-prometheus-db-prometheus-main-kube-prometheus-stack-prometheus-db-0`.

Signed-off-by: Sergei Kuzmin <sergeikuzmin@gmail.com>
charts/kube-prometheus-stack/values.yaml Outdated Show resolved Hide resolved
ksa-real and others added 2 commits July 28, 2022 02:00
Signed-off-by: Sergei Kuzmin <sergeikuzmin@gmail.com>
Co-authored-by: André Bauer <monotek@users.noreply.github.com>
Signed-off-by: Sergei Kuzmin <sergeikuzmin@gmail.com>
Co-authored-by: André Bauer <monotek@users.noreply.github.com>
charts/kube-prometheus-stack/Chart.yaml Outdated Show resolved Hide resolved
Co-authored-by: André Bauer <monotek@users.noreply.github.com>
@monotek monotek merged commit 6808e4c into prometheus-community:main Jul 31, 2022
@ksa-real ksa-real deleted the naming branch July 31, 2022 16:17
stamzid pushed a commit to Unstructured-IO/prometheus-community-helm-charts that referenced this pull request Mar 3, 2023
…prometheus-community#2188)

* [kube-prometheus-stack] Change AlertManager and Prometheus CR naming.

This is to avoid weird dependent object names. AlertManager instance is
named `releasename-alertmanager`, which results in most dependent
objects be named `alertmanager-releasename-alertname`. Same for
Prometheus CR. Generated PersistentVolume is particularly bad:
`prometheus-releasename-prometheus-db-prometheus-releasename-prometheus-0`.
If .Release.Name is `main` and we are not using .Values.nameoverride
then we get insane
`prometheus-main-kube-prometheus-stack-prometheus-db-prometheus-main-kube-prometheus-stack-prometheus-db-0`.

Signed-off-by: Sergei Kuzmin <sergeikuzmin@gmail.com>

* Update charts/kube-prometheus-stack/values.yaml

Signed-off-by: Sergei Kuzmin <sergeikuzmin@gmail.com>
Co-authored-by: André Bauer <monotek@users.noreply.github.com>

* Update charts/kube-prometheus-stack/values.yaml

Signed-off-by: Sergei Kuzmin <sergeikuzmin@gmail.com>
Co-authored-by: André Bauer <monotek@users.noreply.github.com>

* Update charts/kube-prometheus-stack/Chart.yaml

Co-authored-by: André Bauer <monotek@users.noreply.github.com>

Co-authored-by: André Bauer <monotek@users.noreply.github.com>
Co-authored-by: MH <zanhsieh@gmail.com>
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.

4 participants